Author: markt Date: Thu Jul 21 13:29:01 2011 New Revision: 1149172 URL: http://svn.apache.org/viewvc?rev=1149172&view=rev Log: Improve i18n support.
Modified: tomcat/trunk/webapps/docs/changelog.xml tomcat/trunk/webapps/host-manager/WEB-INF/web.xml tomcat/trunk/webapps/manager/WEB-INF/web.xml Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1149172&r1=1149171&r2=1149172&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Thu Jul 21 13:29:01 2011 @@ -113,6 +113,13 @@ system property name for changing the name of the SSO session cookie. (markt) </fix> + <update> + Configure the Manager and Host Manager web applications with the Set + Character Encoding Filter to make the default request character encoding + UTF-8 to improve i18n support. Note that best results will be obtained + if the connector is also configured with + <code>URIEncoding="UTF-8"</code>.(markt) + </update> </changelog> </subsection> <subsection name="Other"> Modified: tomcat/trunk/webapps/host-manager/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/host-manager/WEB-INF/web.xml?rev=1149172&r1=1149171&r2=1149172&view=diff ============================================================================== --- tomcat/trunk/webapps/host-manager/WEB-INF/web.xml (original) +++ tomcat/trunk/webapps/host-manager/WEB-INF/web.xml Thu Jul 21 13:29:01 2011 @@ -47,6 +47,20 @@ </servlet> <filter> + <filter-name>SetCharacterEncoding</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>SetCharacterEncoding</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + + <filter> <filter-name>CSRF</filter-name> <filter-class>org.apache.catalina.filters.CsrfPreventionFilter</filter-class> <init-param> Modified: tomcat/trunk/webapps/manager/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/manager/WEB-INF/web.xml?rev=1149172&r1=1149171&r2=1149172&view=diff ============================================================================== --- tomcat/trunk/webapps/manager/WEB-INF/web.xml (original) +++ tomcat/trunk/webapps/manager/WEB-INF/web.xml Thu Jul 21 13:29:01 2011 @@ -91,6 +91,20 @@ </servlet-mapping> <filter> + <filter-name>SetCharacterEncoding</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>SetCharacterEncoding</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + + <filter> <filter-name>CSRF</filter-name> <filter-class>org.apache.catalina.filters.CsrfPreventionFilter</filter-class> <init-param> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org