RE: the tomcat encoding

2010-11-17 Thread Rob Gregory
:19 To: Tomcat Users List Subject: Re: the tomcat encoding -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 11/16/2010 4:31 AM, Rob Gregory wrote: I also use a filter to set the following:- request.setCharacterEncoding(UTF-8); response.setContentType(text/html; charset=UTF-8

RE: the tomcat encoding

2010-11-16 Thread Rob Gregory
Hi Xu, Encoding is/can be a real pain. You have to ensure it is consistent throughout the web application to stand any chance. Start with the server.xml with the following declaration:- Connector port=80 redirectPort=443 URIEncoding=UTF-8 useBodyEncodingForURI=true / I also use a filter to set

Re: the tomcat encoding

2010-11-16 Thread Mark Thomas
On 16/11/2010 05:59, xu cheng wrote: so ,does anyone know how to got to encoding of the tomcat. or it was just iso-8859-1 and cannot be changed? http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Mark - To unsubscribe,

Re: the tomcat encoding

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 11/16/2010 4:31 AM, Rob Gregory wrote: I also use a filter to set the following:- request.setCharacterEncoding(UTF-8); response.setContentType(text/html; charset=UTF-8); response.setCharacterEncoding(UTF-8); FWIW, you shouldn't

Re: the tomcat encoding

2010-11-16 Thread xu cheng
hi: thanks, the problem is that my tomcat interact with other server and the server use somekind of encoding that is different. and after the encoding is transfered .it works now thanks 2010/11/17 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1