When processing the servlet request, the server uses the following order of precedence, first to last, to determine the character encoding for the request parameters:
The ServletRequest.setCharacterEncoding() method.
A hidden field in the form, if specified using the form-hint-field attribute of the parameter-encoding element in the sun-web.xml file. For more information about this element, see parameter-encoding Element.
The character encoding specified in the default-charset attribute of the parameter-encoding element in the sun-web.xml file. For more information about this element, see parameter-encoding Element.