-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ron,
On 9/29/2010 5:43 AM, Ron Van den Branden wrote:
> There is stated that
> apparently (and counter-intuitively, IMO), 'request parameters are
> always decoded using ISO-8859-1 ', and that consequently
> 'container_encoding should always be ISO-8859-1 (unless you have a
> broken servlet container), and form_encoding should be the same one as
> on your serializer.'.
Note that it's not /all/ parameters that are decoded using ISO-8859-1:
it's only GET parameters. If you use POST, you will likely have better
results.
Note that this means you can't send anything with non-ISO-8859-1
characters in GET parameters safely. There are three solutions:
1. Always use POST (not really a bad idea, but not always practical)
2. Force your container to use UTF-8 to decode GET parameters
(in Tomcat, this can be accomplished using the URIEncoding
attribute of the <Connector> element: see your own container's
documentation for similar capabilities)
3. Never send strings as GET parameters (similar to #1, but somewhat
different: perhaps use HttpSession or other strategies to avoid
passing strings through the URL
Good luck,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyjRP0ACgkQ9CaO5/Lv0PCwEgCZAXF/2nyM3qyQN4twApw1uvM7
IRsAoJiI91NyLyMIJ30kT3pMf/KHRB7B
=9sJ3
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]