DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24345>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24345 request setCharacterEncoding has no affect ------- Additional Comments From [EMAIL PROTECTED] 2003-11-15 09:52 ------- Sorry for bothering you again, but I'm not completely with you... Though there is no standard for the URI encodings, there is a servlet specification (see 2.4pfd3, chapter SRV.4.9). Also, there are many cases when developer is not the one who will impose POST requests to his application - he is forced to get parameters from URI. So, this method SHOULD definitely work as before... I have prepared a 'clean' test file 'bug.jsp' which can be dropped either in Tomcat 5.0.9 or 5.0.14 to see the difference between these two points of developmnent (this file contains some russian text in Cp1251 as a sample). 5.0.9 works fine whereas 5.0.14 does not. <%@ page pageEncoding="Cp1251" language="java" contentType="text/html; charset=utf-8" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <% request.setCharacterEncoding("utf-8"); String test = request.getParameter("test"); if (test != null) { out.write("the length of the test value after decoding: " + test.length()); } out.write("<br>"); out.write("the value of the test parameter: " + test); out.write("<br>"); %> <form action="bug.jsp" method="get"> <input type="text" name="test" value="ัะตัั"> <input type="submit" value="test this russian text (4 characters)!"> </form> </body> </html> What do you think? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]