aspose file tools*
The moose likes Web Services and the fly likes Axis2 service using JVM encoding charset instead of UTF-8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 service using JVM encoding charset instead of UTF-8" Watch "Axis2 service using JVM encoding charset instead of UTF-8" New topic
Author

Axis2 service using JVM encoding charset instead of UTF-8

Francisco Serrano
Greenhorn

Joined: Feb 27, 2012
Posts: 1
Hi all,

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.

Please some advice about this.

Kind regards,
Francisco.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 service using JVM encoding charset instead of UTF-8