When I view the tomcat source code at http://grepcode.com/file/repo1.maven.org/maven2/org.apache.tomcat/tomcat-catalina/7.0.0/org/apache/catalina/connector/Request.java#Request.parseParameters%28%29
I can't find where to set encoding for the queryString which comes from get method and how does the configuration URIEncoding="UTF-8"
in server.xml
work in this method.
The URIEncoding
parameter is what you're looking for. It sets the character encoding to be used when URI decoding the query string.
You use it in server.xml
as an attribute of the Connector
entity.
If successfully used it in the past.