[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about none english character when using HTTPAPI
If i try to answer
To anser point 1-4
1. I have tried different methods of approach both the XML stored in
database file and written straight into the program! No really
difference at all! Same problem occur!
5. The CCSID of the machine and job is 65535!
The strange thing is that when i consume webservice that in the
response send back the swedish letter of Ö i can read the variable
ok. The problem is that when im sendning the same letter Ö to anotther
webservice it comes out wrong as ?? on the other side!
I have tried both with and without the function HTTP_setCCSIDs(1208
:0). and using the XML enconding tag UTF-8 and ISO-8859-1
/Johan
--- Den tis 2010-03-02 skrev Thomas Raddatz
<thomas.raddatz@xxxxxxxxxxx>:
Från: Thomas Raddatz <thomas.raddatz@xxxxxxxxxxx>
Ämne: Re: question about none english character when using HTTPAPI
Till: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Datum: tisdag 2 mars 2010 20.33
Johan,
I do not know whether I will be able to solve your CCSID problem
entirely
or not. I am also not sure that the following explanation explains the
?
character(s) at the receiving side. Nevertheless, please answer the
following questions:
1) Are the non-english characters hard coded literals such as 'Hello
World'?
2) If the non-english characters are literals, what is the CCSID of
your
source physical file?
3) Are the non-englich characters read from a file?
4) If the non-english characters are read from a file, what is the
CCSID of
the file.
5) What is the CCSID of your job?
There are several potential reasons for the problem:
a) If your job CCSID is 65535 (=*HEX) and the characters are read from
a
file, no CCSID conversion (file to job) takes place. But HTTP API
converts
the data from the job CCSID to 1208 with HTTP_setCCSIDs(1208 :0).
b) If the CCSID of your source physical file does not match the CCSID
of
your job (parameter CCSID or default CCSID for CCSID=65535) the
literals in
your program do not have the same CCSID of your job and hence HTTP API
cannot correctly translate the request message with
HTTP_setCCSIDs(1208 :0).
Example:
I wrote a module with CCSID 37 that uses iconv() to translate the '@'
character to CCSID 1208. It then writes the UTF-8 data to a file in
binary
mode. When I run the job with CCSID 37 everything works like a charm.
But
when I change the job CCSID to 273 (German) the '@' sign is converted
to '§'.
Regards,
Thomas
Johan Wigh schrieb:
> Hi!
>
> Im testing to use HTTPAPI for sending Soap messages to internal
> webservice att our business!
>
> But when im consuming a webservice and sendning "non english"
> character i get "??" on the receiving side
>
> I have tried to set the CCSID to UTF-8
> HTTP_setCCSIDs(1208 :0); i get ??
> HTTP_setCCSID(1252:0) i get ?
>
> The webservice im using is based in a windows enviroment and is
> supposed to use UTF-8
>
>
>
> When Im consuming another webservices that and receiving none
english
> characters it works fine and it recieves the non english
characters
> ok! with and without HTTP_setCCSID!
>
> I found some topics around but i still cant figure out what he
problem
> can be
> /Johan from Sweden
>
>
> __________________________________________________
> Använder du Yahoo!?
> Är du trött på spam? Yahoo! E-post har det bästa spamskyddet som
finns
> [1]http://se.mail.yahoo.com
>
>
>
>
----------------------------------------------------------------------
--
>
>
----------------------------------------------------------------------
-
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> [2]http://www.scottklement.com/mailman/listinfo/ftpapi
>
----------------------------------------------------------------------
-
----------------------------------------------------------------------
-
This is the FTPAPI mailing list. To unsubscribe, please go to:
[3]http://www.scottklement.com/mailman/listinfo/ftpapi
----------------------------------------------------------------------
-
__________________________________________________
Använder du Yahoo!?
Är du trött på spam? Yahoo! E-post har det bästa spamskyddet som finns
http://se.mail.yahoo.com
References
1. http://se.mail.yahoo.com/
2. http://www.scottklement.com/mailman/listinfo/ftpapi
3. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------