willia4 / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
1 stars 0 forks source link

Japanese characters are sent as numeric character references #211

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. As a parameter of a SOAP Binding object, enter Japanese characters, e.g. 
"しん¥"
2. Enable XML logging
3. Send the SOAP request
4. Verify OutputBody in console

What is the expected output?
I expected it to be UTF-8 encoded by default, so "しん¥" should have been 
displayed and sent.

What do you see instead?
"しん¥" is converted to numeric character references, e.g. 
"しん¥"

What version of the product are you using? On what operating system?
wsdl2objc 0.7, OS X 10.9.2 and 10.8.5

Please provide any additional information below.
Maybe the call to "xmlDocDumpFormatMemory" is the culprit here.
If I call "xmlDocDumpFormatMemoryEnc" instead, while passing "utf-8" as the 
encoding, the expected value is displayed and sent to the SOAP server.

Original issue reported on code.google.com by djsison2...@gmail.com on 16 May 2014 at 7:22