TomEE Language Settings

This topic describes how to configure TomEE for use in Japanese.

See Also
Configuring Japanese Settings for Linux
Configuring Japanese Settings for Windows
  1. Set csWindows31J for contentType of JSP in emxContentTypeInclude.inc.

    SERVER_INSTALL\STAGING\ematrix\emxContentTypeInclude.inc
    <%@page contentType="text/html; charset=UTF-8"%>

  2. Uncomment the following section in the SERVER_INSTALL\PLATFORM\resources\warutil\fragment\ENOLiveCollaborationServer.web.xml.part fragment file.

    Change:

    <!-- TomCat UTF-8 setting 
    <filter>
       <filter-name>Set Character Encoding</filter-name>
       <filter-class>com.matrixone.servlet.SetCharacterEncodingFilter</filter-class>
       <init-param>
          <param-name>encoding</param-name>
          <param-value>UTF-8</param-value>
       </init-param>
    </filter>
    -->
    
    <!-- TomCat UTF-8 filter mapping
    <filter-mapping>
       <filter-name>Set Character Encoding</filter-name>
       <url-pattern>/*</url-pattern>
    </filter-mapping>
    -->

    to:

    <!-- TomCat csWindows31J setting -->
    <filter>   
     <filter-name>Set Character Encoding</filter-name>   
      <filter-class>com.matrixone.servlet.SetCharacterEncodingFilter</filter-class>   
     <init-param>      
       <param-name>encoding</param-name>      
       <param-value>csWindows31J</param-value>   
     </init-param>
    </filter>
    <!-- TomCat csWindows31J filter mapping -->
    <filter-mapping>   
     <filter-name>Set Character Encoding</filter-name>   
     <url-pattern>/*</url-pattern>
    </filter-mapping>

    and add this JVM argument:

    -Dfile.encoding=csWindows31J

    For more information on modifying web.xml parameters, see Modifying J2EE Settings.

  3. Add the attribute useBodyEncodingForURI="true" to Connector element in server.xml.

    D:\TomEE\conf\server.xml
    <Connector
    port="7070" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" 
    useBodyEncodingForURI="true" UIREncoding="Shift_JIS"
    />
    

  4. Rebuild the J2EE archive file and then reploy it.