On 8/29/05, Richard Jones <[EMAIL PROTECTED]> wrote: > Hi All, > > I am having problems with Scandinavian characters on my system and am > attempting to isolate the problem; any help would be greatly > appreciated.
This is what I did to work with Tomcat. a, Set up Tomcat first: To support UTF encoded data send as part of URI one has to set the URIEncoding attribute of the coyote Connector element in server.xml. b, Use a filter to set the character encoding of the request before it is processed. public void doFilter(ServletRequest req,ServletResponse res,FilterChain chain) { request.setCharacterEncoding("UTF-8"); chain.doFilter(req,res); } c, Set the following header in all JSP pages. <%@ page contentType="text/html; charset=UTF-8"%> Reference: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg153811.html -- rgds Anto Paul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]