You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/12/09 15:04:20 UTC
DO NOT REPLY [Bug 25360] New: -
request.setCharacterEncoding(String enc) does not work.
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=25360>.
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=25360
request.setCharacterEncoding(String enc) does not work.
Summary: request.setCharacterEncoding(String enc) does not work.
Product: Tomcat 5
Version: 5.0.16
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Connector:Coyote
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: minhan@bsteel.com
Maybe it is a bug in class CoyoteRequest, my solution is here:
diff -u CoyoteRequest.java.old CoyoteRequest.java.new
--- CoyoteRequest.java.old 2003-12-09 21:51:57.000000000 +0800
+++ CoyoteRequest.java.new 2003-12-09 21:52:23.000000000 +0800
@@ -2325,9 +2325,9 @@
String enc = coyoteRequest.getCharacterEncoding();
if (enc != null) {
- parameters.setEncoding(enc);
+ parameters.setQueryStringEncoding(enc);
} else {
- parameters.setEncoding
+ parameters.setQueryStringEncoding
(org.apache.coyote.Constants.DEFAULT_CHARACTER_ENCODING);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org