Details
Description
If a form value is encoded in some non-utf8 encoding (e.g. Shift_JIS), request.getParameter() returns an invalid string even if I call request.setCharacterEncoding() beforehand.
This worked fine with jetty 6.1.6rc0 and was broken in 6.1.6rc1.
It seems that the fix for #JETTY-388 caused the problem.
Please check the method UrlEncoded#decodeTo(InputStream in, MultiMap map, String charset, int maxLength).
–
I have attached a simple webapp to reproduce the problem.
If you need more information, please let me know.
Issue Links
- relates to
-
JETTY-501
/org/mortbay/util/UrlEncoded.java (method public static void decodeTo(InputStream in, MultiMap map, String charset, int maxLength)) - not valid use charset
-
This is a problem using 6.1.7 as well