Configure appservers for UTF-8 encoding

To use multiple language encoding support in the administrative console, configure an appserver with UTF-8 encoding enabled.

 

  1. Create an application server or use an existing appserver.

  2. On the Application Server page, click on the name of the server you want enabled for UTF-8.

  3. On the settings page for the selected appserver, click Process Definition.

  4. On the Process Definition page, click Java Virtual Machine.

  5. On the Java Virtual Machine page, specify -Dclient.encoding.override=UTF-8 for Generic JVM Arguments and click OK.

  6. Click Save on the console taskbar.

  7. Restart the application server.

Note that the autoRequestEncoding option does not work with UTF-8 encoding enabled. The default behavior for WebSphere Application Server is, first, to check if charset is set on content type header. If it is, then the product uses content type header for character encoding; if it is not, then the product uses character encoding set on server using the system property default.client.encoding. If charset is not present and the system property is not set, then the product uses ISO-8859-1. Enabling autoRequestEncoding on a Web module changes the default behavior: if charset it not present on an incoming request header, the product checks the Accept-Language header of the incoming request and does encoding using the first language found in that header. If there is no charset on content type header and no Accept language header, then the product uses character encoding set on server using the system property default.client.encoding. As with the default behavior, if charset is not present and the system property is not set, then the product uses ISO-8859-1.


Creating appservers