[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Conversion using Iconv to ASCII



Sakthivel,

I don't think that you should be using CCSID 1252 because looking at your debug log the messages that you are exchanging appear to be in utf-8 which is CCSID 1208.  That being said,  I think that the tilde character has the same code point in 1252 and 1208 (x'7E') so that shouldn't be the cause of your problem.

I'm not clear exactly how your AS400 is configured, but it looks to me as if the problem may be that the wrong EBCDIC CCSID is being used somewhere.  In CCSID 500 (and 037) "~" is x'A1' and "¯" is x'BC', but on the systems that I work on we use CCSID 285 (UK English) where these characters are reversed, i.e. "¯" is x'A1' and "~" is x'BC'.  It might be worth checking that there isn't some component on your system that is using an EBCDIC CCSID other than 500.

Regards,

Nick

___________________________________
Nick Townsend
Technical Leader
Endsleigh Insurance Services Limited
Telephone: +44 (0)1242 866866 ext. 6426


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Sakthivel-Viswanathan
Sent: 26 January 2009 10:11
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Conversion using Iconv to ASCII

Group,



Any clues on this would be of great help.



Regards,

Sakthivel

________________________________

From: Sakthivel-Viswanathan
Sent: 23 January 2009 14:07
To: 'ftpapi@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE: Conversion using Iconv to ASCII



Mike/Scott/Group,



Sorry, I thought that this would be a common issue.



Yes Mike, I am not able to read the ascii though I able to view it. I see the data getting written to the debug log file.



I have attached the code and debug log. Please see the Code_Response_Expected Response.txt before reading further.



After trying the default CCSIDs, I tried CCSID of 500, 1252 because when I was discussing with my boss, he was saying that our AS400 systems use CCSID of 500 and servers in US where the web service is running, use 1252. Check logs - httpapi_DefaultCCSID.txt, httpapi_CCSID500to1252.txt.
Please note that tilda is appearing properly in the notepad. But it did not in my AS400 :-(.



I also noticed that my system default for CCSID is 65535 and 'Country or region identifier' as NL(Netherlands). I tried changing these to 500 and US too. Anything to do with this?



We also have a table created Q500TO1252 and Q1252TO500 in our systems. I tried defining the HTTP_USE_TABLES in Config_h (recompiled HTTPAPI completely), and called my program with default tables (QTCPEBC,
QTCPASC) and also HTTP_setTables('Q500TO1252','Q1252TO500'). But I got internal server error. I have attached the debug log
(httpapi_debug_UsingTables.txt) for this too.



The output which I get here is one of the input for my next consumption of web service. Where I include another parameter which is "invLoc:L~deliveryCd:D~catalogId:100". When this goes to the server, where the web service is running, both the parameters gets changed and have junk characters instead of tilda.



I don't know if I am confused or I am confusing everybody.



Regards,

Sakthivel




Information contained in this email is intended for the use of the addressee only, and is confidential and may be the subject of legal professional privilege. Any dissemination, distribution, copying or use of this communication without prior permission of the addressee is strictly prohibited. If you have received this email in error please notify the Help Desk at Endsleigh on 01242 866866.
The contents of an attachment to this email may contain software viruses, which could damage your computer system. While Endsleigh has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage, which you sustain as a result of software viruses. You should carry out your own virus checks before opening the attachment.

http://www.endsleigh.co.uk
Endsleigh Insurance Services Limited is authorised and regulated by the Financial Services Authority
Company number: 856706
Registered in England at Shurdington Road, Cheltenham Spa, Gloucestershire GL51 4UE
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------