Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3


To support an international market, you can must switch to the new standard UTF-8.


The process of using UTF-8 may with SiteMesh requires adjustments to one or more the following layers,

  1. Set Files and Workspace to UTF-8
  2. HTML
  3. JSP
  4. SiteMesh

It may also require changes to the following,

  1. Servlet Container
  2. SiteMesh
  3. Server Operating System
  4. Server Database if one is being used

Following this tutorial it will be clearly evident if UTF-8 is working. As such, we will stop at each layer to see the results of our changes. It may be the case that the other layers already default to UTF-8.

Create a UTF-8


Test Pages

The very first step is to create a UTF-8 page and identify if there are issues.


Load page in Firefox 2.x or higher and click View, Character Encoding. The dot in the menu will indicate which encoding is being used by Firefox.


Adjust for SiteMesh


Inform the browser that the page contents are of a specific character set. You should do this anyway as a general practice.


Servlet Filter patch to SiteMesh , though I am not convinced this actually is necessary with current Tomcat (6.0.33) versions - for html and non-server-side files -