How do we control charset encoding in Apache and Tomcat?
We are having problems rendering special characters in Apache and Tomcat from EWS 1.0.1 even though that same code worked fine on our old Sun web and app servers. We believe we need UTF-8 throughout, but the code specifies different character sets. We are asking the developers to clean that up but we also need to confirm what can be done on the server side. Note this code runs through Tomcat and Apache serves as a proxy. Here's what I've identified to date:
Set encoding in Apache by adding 'AddDefaultCharset utf-8' to the end of httpd.conf
Set encoding in Tomcat by adding 'URIEncoding="UTF-8"' to the connector in server.xml
Set encoding in Tomcat by adding a MIME type mapping:
Are there any other server side settings we can try, or should those listed above be used together? Other than these options does it just come down to encoding in the application (JSPs, Servlets, and filters) or is there another place to set character encoding?
- JBoss Web Server (JWS)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.