-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 7/23/2011 8:34 AM, Marvin Addison wrote: >> If you want to set the charset in the HTTP header, you'll need to >> set it explicitly using a JSP, a filter or similar. > > It's wise to do both, > http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q8. > > For the filter, it's important to put the filter at or near the top > of the filter chain since any attempt to read the request will > coerce the encoding, possibly before it is explicitly set. I think you mean "any attempt to WRITE The RESPONSE". > Two good existing filters for this purpose: > > http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/filter/CharacterEncodingFilter.html Spring's > filter only sets the /request/ encoding, not the response. > http://code.google.com/p/vt-middleware/wiki/vtservletfilters#CharacterEncodingFilter The > above will set response encoding too. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4tn6IACgkQ9CaO5/Lv0PDr3wCfZ/cmBGib/o1lfLcRceLBYFof KnYAniUd2AAqEVnb+sC9L6rSuhVXUspw =68m4 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org