Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved

Chapter 6 Application Server Settings : Character Encoding

Character Encoding
The following describes how to set character encoding to UTF-8 using Tomcat. If you are using a different web server, refer to their documentation.
If you are going to be using any double-byte character encoding, such as the Japanese character sets, you need to set the URIEncoding attribute in Tomcat’s server.xml file to “UTF-8”, otherwise data such as the case description will not be properly encoded. The URIEncoding attribute must be located in the <Connector> element.
Note that the URIEncoding parameter is not in the server.xml file by default; you must add it if you are going to be using any double-byte character sets.
To do this:
1.
Locate the <Connector> element in the following configuration file:
   TomcatDir\conf\server.xml
where TomcatDir is the directory in which Tomcat is installed.
2.
Add a URIEncoding attribute and set it to “UTF-8”. See the following example:

 
<Connector URIEncoding="UTF-8" port="8080"
maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25"
maxSpareThreads="75" enableLookups="false" redirectPort="8443"
acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" maxPostSize="0" />

 
You must restart Tomcat for the change to take effect.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved