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=24557>. 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=24557 Request encodings doesn't work. [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED ------- Additional Comments From [EMAIL PROTECTED] 2003-11-26 11:37 ------- The org.apache.coyote.tomcat4.CoyoteRequest class missed the key codes for setting encoding value before call the function named "parameters.handleQueryParameters()" in method "parseRequestParameters ()". The method "handleQueryParameters()" in org.apache.tomcat.util.http.Parameters uses the encoding value setting by the function named "setQueryStringEncoding(String s)" to convert byte array of the request inputStream to normal string. The correct codes shows as following: protected void parseRequestParameters() { requestParametersParsed = true; Parameters parameters = coyoteRequest.getParameters(); String enc = coyoteRequest.getCharacterEncoding(); if (enc != null) { parameters.setEncoding(enc); //Here set the query string encoding parameters.setQueryStringEncoding(enc);//Here set the queryParm enc } else { parameters.setEncoding (org.apache.coyote.Constants.DEFAULT_CHARACTER_ENCODING); //Here set the query string encoding parameters.setQueryStringEncoding (org.apache.coyote.Constants.DEFAULT_CHARACTER_ENCODING); } parameters.handleQueryParameters(); ......... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]