Thanks for answer, but the page is a HTML page not a JSP, so this
directive will not work.

JSP pages are working fine since I have the directive you mentioned.


P.D: I'm accessing Tomcat directly, I'm not using Apache.



-----Original Message-----
From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]] 
Sent: Lunes, 01 de Julio de 2002 12:49 p.m.
To: Tomcat Users List
Subject: RE: Wrong Encoding returned by Tomcat 4.03 in HTML pages

Someone else pointed out that for some reason you need to use the 

<%@ page contenttype="..." %>

tag to get this to work.  Not sure why, but it solved someone else's
problem. 


Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 


-----Original Message-----
From: Jos� Montiel [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 8:54 AM
To: [EMAIL PROTECTED]
Subject: Wrong Encoding returned by Tomcat 4.03 in HTML pages
Importance: High


Hi,

        I just installed Tomcat 4.03 in a Linux/RedHat 7.1 box, and I'm
having the following problem:

        When I call a shtml, html page the browser set character
encoding as Unicode (UTF-8) even though the page has the proper META TAG

        <META content="text/html; charset=iso-8859-1"
http-equiv=Content-Type>

If I change character encoding to Western European�(ISO) on the browser
the page reloads automatically and the error disappear. If I reload the
page the encoding is changed again to UTF-8.

        If a call a JSP it works just fine, encoding is correct.

        I have tried this with IE 6, Netscape 6 on Windows and Mozilla,
Netscape and Konqueror on Linux, always same result. 

        Locale settings on Linux box are set to es_VE, I also tried
en_CA.

        I have set debug level to 6 in all servlets with no luck.


        Any idea?

        Thanks in advance

bye





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


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

Reply via email to