Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "FAQ/CharacterEncoding" page has been changed by KonstantinKolinko:
https://wiki.apache.org/tomcat/FAQ/CharacterEncoding?action=diff&rev1=24&rev2=25

Comment:
Update section on POST encoding filter, remove reference to Tomcat 5.5 example 
webapp

  
  <<Anchor(Q3)>>'''How do I change how POST parameters are interpreted?'''
  
- POST requests should specify the encoding of the parameters and values they 
send. Since many clients fail to set an explicit encoding, the default is used 
(ISO-8859-1). In many cases this is not the preferred interpretation so one can 
employ a javax.servlet.Filter to set request encodings. Writing such a filter 
is trivial. Furthermore Tomcat already comes with such an example filter. 
Please take a look at:
+ POST requests should specify the encoding of the parameters and values they 
send. Since many clients fail to set an explicit encoding, the default is used 
(ISO-8859-1). In many cases this is not the preferred interpretation so one can 
employ a javax.servlet.Filter to set request encodings. Writing such a filter 
is trivial.
-  5.x::
- {{{
- 
webapps/servlets-examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java
- webapps/jsp-examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java
- }}}
   6.x, 7.x::
+ Tomcat already comes with such an example filter. Please take a look at:
  {{{
  webapps/examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java
  }}}
   5.5.36+, 6.0.36+, 7.0.20+, 8.x::
  Since 7.0.20 the filter became first-class citizen and was moved from the 
examples into core Tomcat and is available to any web application without the 
need to compile and bundle it separately.
- See documentation for the list of 
[[http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html|filters]] provided 
by Tomcat. The class name is:
+ See documentation for the list of 
[[http://tomcat.apache.org/tomcat-8.0-doc/config/filter.html|filters]] provided 
by Tomcat. The class name is:
  {{{
  org.apache.catalina.filters.SetCharacterEncodingFilter
  }}}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to