-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jan,
On 6/26/13 7:14 AM, Jan Vávra wrote: > Hello, >>>> When I create user with password with czech String >>>> "ŽežUlička.1" the browser sends correctly this string as: >>>> >>>> POST http://localhost:70/myapp/j_security_check HTTP/1.1 >>>> Content-Type: application/x-www-form-urlencoded >>>> >>>> j_username=p&j_password=%C5%BDe%C5%BEUli%C4%8Dka.1 >> The browser is not sending that correctly. The password is UTF-8 >> encoded but the Content-Type fails to specify the character set >> used. It it did, Tomcat would treat the password as UTF-8. >> >> This is a common failing of browsers and is covered in the FAQ. >> [1] > Well I have tried IE, Firefox, Chrome. None of them is appending > charset in Content-Type. Again, this is a "common failing of browsers and is covered in the FAQ". > I have manually modified the request header to: Content-Type: > application/x-www-form-urlencoded; charset=utf-8 and Tomcat gives > me the letters in the correct form. Ok, good to know. Did you read the FAQ? There are suggestions for fixing this issue. The CharacterEncodingFilter (/without/ the "force" option enabled) IMO is the most appropriate. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRyvEQAAoJEBzwKT+lPKRYTfsP/0Hru8ofkSxJW2TsgIL17y23 LgTEyINmWuijJK7SEzqk8ZXsjDKCyVxHECKGvrvQdp0/NHhnE7Vey856G2+C1568 ym/+ZOxJTbCcmvMsNbbp5WIb/j55waZQJhLS0DwVQHEfGxLM4C3hykV5R+NQuBSW smOa69S1yk66+moq4eHypWi6CH+e0TTaIwA8TDOtACREQphWdguKXGsgAX0hswK2 H6kh/+jpLdHKvU5CbyMsBqe912AFMD9E/hHmgiwEWAe/9+eTsHOlfV7EVJ8Vy7DW QoHHGYjADAcwapUijSMtckPpPeX9dt1XDJ5KQ+D2dojWgWUgN7+SbiTD1tmIjM+b KeQad/DeHsm+rZw9IQCQZkBaDJXlLYdBdn/pCLVcahh8QbYijThimdIA1V7kVVsp 8stYl27exDQHDZB2kr8pP+hykJIJIl+JGy6shhLYrGCv1jMCGbZha4/tS8/5Ccqz gWLJiyMmP7VkROgd1v1Pet8i+AuuZcs/nHFVQ2NUf4Tntz0/c0+fDJlCFStKBKaG uwA4FlC7PnOt3KuGf0TpbM8Ri60KRBaJ8QYGkDjx7mqT2leHzcUWNxFgulSXcQbx npoHsPRO+nEhxyqYfgozxNoOqUeZWgguG/5cCLemkYKZRDWylLekqdcd7Yd2RdBQ UabVUNZBgChB3kyiWlMR =gr3S -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org