tschmalz
03-22-2006, 08:54
Hello,
I client sends us xml documents encoded in iso-8859-2.
We get these documents on a custom service (we're not using wm.tn.receive).
Currently, we call the following services :
- xmlStringToXMLNode (without encoding specified)
- recognize
- routeBizdoc
We were testing special characters treatment, and currently, those special characters are stored in TN as follow :
±æê³ó¶ñ¼¿ ¡ÆÊ£ÓѦ¬¯
When I set encoding to iso-8859-2 on the xmlStringToXMLNode service, I obtain the following string :
????ó???? ????Ó????
I tried one more thing, I forced the bizdoc contentPart MimeType to text/xml; charset=iso-8859-2, and I obtained :
¹Ìê³óœùŸ¿ ÂĄĂĂÂŁĂĂÂŚÂŹÂŻ
So here I have some polish characters which seem to be OK, but with those Â, Ă, etc... letters which have nothing to do here.
Is this because it is UTF-8 encoded on 2 bytes ?? I can't understand....
Another thing, I tried bytesToString, stringToBytes with all possible parameters, and I always obtain one of those 3 lines...
so my questions :
1) What could I do !!?
2) How can I be sure that the client really sends iso-8859-2 ??
3) Is the line <?xml version="1.0" encoding="iso-8859-2"?> really useful ???
Thanx !
Regards
I client sends us xml documents encoded in iso-8859-2.
We get these documents on a custom service (we're not using wm.tn.receive).
Currently, we call the following services :
- xmlStringToXMLNode (without encoding specified)
- recognize
- routeBizdoc
We were testing special characters treatment, and currently, those special characters are stored in TN as follow :
±æê³ó¶ñ¼¿ ¡ÆÊ£ÓѦ¬¯
When I set encoding to iso-8859-2 on the xmlStringToXMLNode service, I obtain the following string :
????ó???? ????Ó????
I tried one more thing, I forced the bizdoc contentPart MimeType to text/xml; charset=iso-8859-2, and I obtained :
¹Ìê³óœùŸ¿ ÂĄĂĂÂŁĂĂÂŚÂŹÂŻ
So here I have some polish characters which seem to be OK, but with those Â, Ă, etc... letters which have nothing to do here.
Is this because it is UTF-8 encoded on 2 bytes ?? I can't understand....
Another thing, I tried bytesToString, stringToBytes with all possible parameters, and I always obtain one of those 3 lines...
so my questions :
1) What could I do !!?
2) How can I be sure that the client really sends iso-8859-2 ??
3) Is the line <?xml version="1.0" encoding="iso-8859-2"?> really useful ???
Thanx !
Regards