Modify the web.xml file.
For information about how to modify a file, see Modifying Configurations.
Add the following filter:
<filter> <filter-name>EncodingFilter</filter-name> <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>EncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
IMPORTANT:This must be the first filter in the web.xml file.