This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
Axis2 service using JVM encoding charset instead of UTF-8
posted 4 years ago
I'm having some troubles with a service created with Axis2 from WSDL. The service is working fine, I mean, I can send requests and receive responses correctly.
The problem is that the response is using UTF-8 to encode the message, after checking with Wiresharks I can confirm the response specifies UTF-8 for both the xml messange and the HTTP header and the character I'm having problems with is correctly encoded with UTF-8.
The problem is that the client generated is using ISO-8859-15 to decode that message so some characters are wrong. That encoding charset is being used because is the one specified for the JVM. I'm afraid I can not change this so, is there any way to specify the charset to use to decode the messages in the responses? Might this be a bug as the response specifies correctly the encoding used? The Axis2 version I'm using is 1.0.