https://bz.apache.org/bugzilla/show_bug.cgi?id=59764

            Bug ID: 59764
           Summary: Character encoding is wrong for requests which mix GET
                    and POST parameters
           Product: Tomcat 8
           Version: 8.0.30
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: tof...@gmail.com

Created attachment 33992
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33992&action=edit
Small sample application demonstrating this bug

I attached a small sample to demonstrate this bug.

I have a tomcat servlet container with a connector defined to use UTF-8 as the
default character encoding:

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="120000"
redirectPort="8443" URIEncoding="UTF-8" compression="on"
compressableMimeType="text/html,text/xml,text/plain,text/javascript,text/css,text/json,application/json,application/javascript"
compressionMinSize="2048"/>

For requests which contain both URL and form paramters, e.g.:

Request URL:
http://localhost:8084/EncodingBug/EchoParamsServlet?getParam=All%20the%20way%20to%20San%20Jos%C3%A9!
Request Method:POST
Form Data: postParam=All+the+way+to+San+Jos%C3%A9!

Post parameters are not parsed using UTF-8 encoding even though this is
specified in the request and in the server.xml, so non English characters
become garbled. (e.g.: "All the way to San José!" -> "All the way to San
José!")

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to