walterDurin / android-ws-client

Automatically exported from code.google.com/p/android-ws-client
0 stars 0 forks source link

no utf-8 support? problem with special character #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hey,
first thanks for this great project.
while using as a while I found an issue, that makes my work very hard.
in germany we are using a lot of special characters like ß,ö,ä,ü...
I have a webservice with a request of Strings. If I send Strings with special 
characters they´re not transfered.

example from Logcat System.out:
...
<phenomenonId>0</phenomenonId>
<woundKind>Diabetischer Fu?</woundKind>
<woundnr>0</woundnr>...

With SoapUI it works perfekt, so I think there is an issue in the Mapping?

Thank you very much, Greetings

Original issue reported on code.google.com by knex...@gmail.com on 26 Jul 2012 at 3:00

GoogleCodeExporter commented 9 years ago
Note: It only happens in requests. Responses are shown correctly.

Original comment by knex...@gmail.com on 26 Jul 2012 at 3:10

GoogleCodeExporter commented 9 years ago
Yes, I'm dealing with the same issue.

Did you got a solution?

Original comment by iscrober...@gmail.com on 26 Aug 2013 at 8:53

GoogleCodeExporter commented 9 years ago
Ok, I have a fix for this:

If the owner allows me to commit the fix, I'll do it.

If not, just compile the jar and do this changes:

in the org.jinouts.transport.HttpTransportUtil change the following line:

post.setEntity ( new StringEntity ( reqXMLString ) );

to this one:

post.setEntity ( new StringEntity ( reqXMLString, HTTP.UTF_8 ) );

You might want to add the proper import: 
import org.apache.http.protocol.HTTP;

That would fix the issue.

Original comment by iscrober...@gmail.com on 26 Aug 2013 at 11:05

Attachments: