André Warnier wrote:
If, inside a html page containing a tag such as <meta content="text/html; charset=iso-8859-2" http-equiv="Content-Type">
[...]
would always return into p1, the proper internal Java Unicode string value of the input element "param1" of the form, properly decoded from it's original iso-8859-2 encoding.Yes ?
Hi,It doesn't work for me. By default Tomcat uses ISO-8859-1 encoding. And it will try this encoding to parse input parameters.
You have to call request.setCharacterEncoding(...) before reading parameter values from request.
Best solution is to have servlet filter that sets request encoding to some value. I use always UTF-8 and it works with no problems.
http://wiki.apache.org/tomcat/Tomcat/UTF-8 -- Mikolaj Rydzewski <m...@ceti.pl>
smime.p7s
Description: S/MIME Cryptographic Signature