tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tremal Naik" <>
Subject Re: UTF-8 charset encoding
Date Fri, 16 Nov 2007 15:02:41 GMT
2007/11/16, Mohsen Saboorian <>:
> I don't know if this is the best solution. You can create a filter for
> *.* in your web.xml, with the following piece of code:
> response.setCharacterEncoding("UTF-8");

No, unfortunately the parameters are parsed before any filter is
invoked. Hence, a flag is set on the request that avoids subsequent
parameters re-evaluation:

        parametersParsed = true;

When the filter sets the character encoding, it is too late.

thanks, anyway


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message