In a tomcat deployed server, The non-english characters getting from web services are not displaying correctly.
We write a main program in java and retrieved the data through web-service. its parsed well and correctly displayed the non-english character.
So the issue is with tomcat, after investigation we found this.
In the catalina.bat (catalina.sh) add the java args... set JAVA_OPTS=-Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8 then all encodings seem to come across as UTF-8 by default..
This resolved the problem.
Added some more info:
Configuring Tomcat's URI encoding
By default, Tomcat uses ISO-8859-1 character encoding when decoding URLs received from a browser. This can cause problems when Confluence's encoding is UTF-8, and you are using international characters in attachment or page names.
- Edit conf/server.xml and find the line where the Coyote HTTP Connector is defined. It will look something like this, possibly with more parameters:
- Add a URIEncoding="UTF-8" property to the connector:
- Restart Tomcat
Also check this