Al Maw wrote:
You probably need to write a servlet filter that wraps the entire
request that sets the encoding:
WicketFilter does exactly the same thing, but the response encoding is
already set (by container?) so it remains wrong.
It seems like the approach Igor mentioned works only if you use
ISO-8859-1 for your pages (at least under tomcat 5.5).
public class CharsetFilter implements Filter {
public void init(FilterConfig config) throws ServletException {}
public void destroy() {}
public void doFilter(ServletRequest request,
ServletResponse response, FilterChain chain)
throws IOException, ServletException
{
request.setCharacterEncoding("UTF-8");
chain.doFilter(request, response);
}
}
--
Andrew Klochkov
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]