Ingo Rockel wrote:

Hi,

I have a problem with the default encoding of tomcat 4 and 5 which tomcat reports to the client if the client application doesn't set an encoding, e.g.:

    "Content-Type: text/html"

tomcat 4.1.30 sets this to "Content-Type: text/html;charset=8859_1" which isn't a valid identifier for this encoding, according to
http://www.iana.org/assignments/character-sets and it causes problems with Internet Explorer, whereas "charset=ISO-8859-1" works fine which 4.1.27 used to set. Is there some sort of config where I can set this default encoding (passing -Dfile.encoding to the tomcat vm didn't work).


Thanx for any help,

Ingo

What problems specifically are you having with Internet Explorer?

Most encoding issues I've come across are easily resolved by setting the contentType attribute of the 'page' directive at the top of your JSP file:

<%@ page contentType= "text/html;charset=ISO-8859-1" %>

Respectfully,
Brice Ruth

--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to