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

RE: Conversion using Iconv to ASCII



Group, 

Thanks for the response.

I just figured the problem today afternoon. It was really really too
much - my emulator session was configured with code page 285 (UK
english). My boss was saying last week that all our sessions are
configured with 500 code page. So I just gave it a shot and tried
changing it to 500 today. Oops...it worked. The problem happened when I
was copy-pasting the input parameters. I think I spent too much time on
this.

Regards,
Sakthivel
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
Sent: 26 January 2009 18:00
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Ftpapi Digest, Vol 31, Issue 32

Send Ftpapi mailing list submissions to
	ftpapi@xxxxxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.scottklement.com/mailman/listinfo/ftpapi
or, via email, send a message with subject or body 'help' to
	ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
	ftpapi-owner@xxxxxxxxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ftpapi digest..."


Today's Topics:

   1. RE: Conversion using Iconv to ASCII (Sakthivel-Viswanathan)
   2. RE: Conversion using Iconv to ASCII (Nick Townsend)


----------------------------------------------------------------------

Message: 1
Date: Mon, 26 Jan 2009 10:11:23 -0000
From: "Sakthivel-Viswanathan" <Sakthivel.Viswanatha@xxxxxxxxxxxxxxx>
Subject: RE: Conversion using Iconv to ASCII
To: <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID:
	
<F369E1AC36E554449EAB4C584F39457A07C42F47@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-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

 

-------------- next part --------------

   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 L.


   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

------------------------------

Message: 2
Date: Mon, 26 Jan 2009 12:26:04 +0000
From: Nick Townsend <Nick.Townsend@xxxxxxxxxxxxxxx>
Subject: RE: Conversion using Iconv to ASCII
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID:
	
<46C341FD00C73A499B7712CCB146611413AC289CBB@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
	
Content-Type: text/plain; charset="iso-8859-1"

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 digest.  To unsubscribe, go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


End of Ftpapi Digest, Vol 31, Issue 32
**************************************
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------