Improve i18n support.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 21 Jul 2011 13:29:01 +0000 (13:29 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 21 Jul 2011 13:29:01 +0000 (13:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1149172 13f79535-47bb-0310-9956-ffa450edef68

webapps/docs/changelog.xml
webapps/host-manager/WEB-INF/web.xml
webapps/manager/WEB-INF/web.xml

index a49d437..18c3ed9 100644 (file)
         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=&quot;UTF-8&quot;</code>.(markt)  
+      </update>
     </changelog>
   </subsection>
   <subsection name="Other">
index 7177ffe..9d26615 100644 (file)
   </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>
index 5245e3d..9a43ef5 100644 (file)
   </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>