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

RE: Problem Character conversion



I don't know the exact answer but maybe can jog some thoughts...

This post might help:
http://www.scottklement.com/archives/ftpapi/200911/msg00070.html

Is this web service echoing back what it received or creating new data?

Is your job, the source code, and where you are getting the data from all coded 37? If not, did you try HTTP_SetCCSIDs(1208:0)?

Or did you try a CCSID that matches where the Spanish character is coming from?

How did you create the character? Did you type it in or hardcode constant or...?

This post and thread appears to be talking about the same problem:
http://www.scottklement.com/archives/ftpapi/201003/msg00024.html

What procedure are you using to send the XML? I seem to remember a discussion about sendraw needing translation but using "higher level" procedures will do the translation for you. Can't find that though so I might be wrong.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of gilles.renne@xxxxxxxxxxxxxxxxx
Sent: Friday, May 24, 2013 2:08 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Problem Character conversion 



hi

 I try to send characters Í which is spanish character
this character is in CCSID 37

but when i send it to an external web service it retrieve ??

see the http_debug
(See attached file: httpapi_debug-txt.zip)
Send :<tns:Input>AM          04 ALMERÍA       .</tns:Input>
Receive : <Output>AM          04 ALMER??A       .</Output>

the character is good

i try to change ccsid with HTTP_setccsids(1208:37) here
			 // to the encoding of the SOAP envelope
			 //HTTP_SetCCSIDs(getPostCcsid(): HTTP_EBCDIC);
 			HTTP_SetCCSIDs(1208:37);

 			// Create and open data source to store the request
message
 			hDataSource = ManagedMemoryDataSource_new
(1024*1024*4); // 4 MB

			 contentType = 'text/xml';
but is is not working

do i need to translate the characters before sending it ??
how using http_xlate function ?


regards

Gilles
This message contains confidential information. To know more, please click on the following link: http://disclaimer.bureauveritas.com   
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------