When processing a servlet response, the server uses the following order of precedence, first to last, to determine the response character encoding:
The ServletResponse.setContentType() method or the ServletResponse.setLocale() method.
The default encoding, which is ISO-8859-1.
To specify the character encoding that should be set in the Content-type header of the response if the response locale is set using the ServletResponse.setLocale method. You can use the locale-charset-map under the locale-charset-info element in the sun-web.xml file. For more information about this element, seelocale-charset-info