Documentation Center

Setting character encoding for the connector

Set the character encoding for the connector to UTF-8 by modifying the file server.xml in the conf/ subdirectory of the Apache Tomcat home directory.

Procedure

  1. Access the conf/ subdirectory of the Tomcat home directory and in this location, open server.xml for editing.
  2. If you will use port 8080 to access Contenta Web, configure the encoding for that port by performing the following steps.
    1. In the server.xml file, find the Connector element for port 8080, which looks like the following by default.
      <Connector port="8080" protocol="HTTP/1.1" redirectPort="8443" />
    2. Configure the character encoding for the connector by adding the following attribute within the Connector element.
      URIEncoding="UTF-8"
  3. If you will use port 8009 to access Contenta Web, configure the encoding for that port by performing the following steps.
    1. In the server.xml file, find the Connector element for port 8009, which looks like the following by default.
      <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
    2. Configure the character encoding for the connector by adding the following attribute within the Connector element.
      URIEncoding="UTF-8"
  4. Save and close server.xml.
    Before proceeding to the next step, refer to the Related Topics listed below.
  5. Restart Tomcat.