You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Vaduvoiu Tiberiu <va...@yahoo.com> on 2007/07/02 09:07:24 UTC

change/set tomcat encoding

I'm having problem with tomcat encoding. I have some xml files that have encoding utf-8 but when I do a slide search, I get some errors because(or at least I think because) by default, Tomcat uses ISO-8859-1 character encoding. Googling the problem, I've read a couple of articles on mailing list about other people that had problem with the german umlaut characters. 
How can I change the default character encoding in Tomcat to utf-8? 

10x  



 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: change/set tomcat encoding

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Vaduvoiu Tiberiu [mailto:vaduvoiutibi@yahoo.com] 
> Subject: change/set tomcat encoding
> 
> I'm having problem with tomcat encoding. I have some xml 
> files that have encoding utf-8 but when I do a slide search, 
> I get some errors because(or at least I think because) by 
> default, Tomcat uses ISO-8859-1 character encoding.

As required by the HTTP RFC.  Take a look at the FAQ entry:
http://tomcat.apache.org/faq/misc.html#tomcat5CharEncoding

> How can I change the default character encoding in Tomcat to utf-8? 

Look at Mark T's summary (linked from the above):
http://issues.apache.org/bugzilla/show_bug.cgi?id=23929

Also make sure your .xml files are really stored in UTF-8.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org