Saturday, 24 November 2012

Tomcat 6 - UTF 8


If you are having problems with utf-8 charset (lets say Turkish letters) what you need to do is to change the server.xml file located in $TOMCAT_HOME/conf as follows.


<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" /> 

to

<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8"/>


In Eclipse Indigo, find the directory named Servers ( the default name ) which is in the same level as other projects in project view. Find the server.xml file and change the above mentioned lines.

Cheers.

No comments:

Post a Comment