Encoding in JBOSS – Request and Response

by toy

1. Find the server.xml in $JBOSS_HOME/server/$YOUR_SERVER/deployjbossweb-tomcat55.sar

2. Add URIEncoding=”UTF-8″

1
2
3
4
5
6
7
8
9
<Connector port="8080" address="${jboss.bind.address}"
        maxThreads="250" maxHttpHeaderSize="8192"
        emptySessionPath="true" protocol="HTTP/1.1"
        enableLookups="false" redirectPort="8443" acceptCount="100"
        connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>

   <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"
        emptySessionPath="true" enableLookups="false" redirectPort="8443" URIEncoding="UTF-8"/>

3. Finished