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,
- Set Files and Workspace to UTF-8
It may also require changes to the following,
- Servlet Container
- Server Operating System
- 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
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 - http://blog.sidu.in/2007/05/tomcat-and-utf-8-encoded-uri-parameters.html