tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Fohrer <Torsten.Foh...@dcsi.de>
Subject AW: charset fail to set browser encoding
Date Fri, 14 Jun 2002 08:23:51 GMT

try,
 <%@ page contentType="text/html; charset=gb2312" %>
at the first line in your jsp page.



> -----Ursprüngliche Nachricht-----
> Von: Kenneth Tang [mailto:kenneth.tang@vaka.com]
> Gesendet: Freitag, 14. Juni 2002 09:26
> An: tomcat-user@jakarta.apache.org
> Betreff: charset fail to set browser encoding
> 
> 
> Hi,
> 
> I am new in using Tomcat.  I got a problem in displaying i18n char in
> jsp page.
> 
> I got a simple jsp page as below:
> 
> <html>
> <head>
>   <META http-equiv=Content-Type content="text/html; charset=gb2312">
> </head>
> <font face="Verdana, Arial, Helvetica, sans-serif"><b><font
> size="3">×¢²á</font></b></font>
> 
> The charset have been set to "gb2312".  However, one have to 
> change the
> encoding manually inside the 
> brower in order to view the encoding correctly.
> 
> I have also tried to change the file extension from "xx.jsp" to
> "xx.html".  It works in "xx.html" extension, 
> but fail to display correct encoding in "xx.jsp".
> 
> Am I miss something? Could any one give me a hand on it?
> 
> Thanks in advanced!
> 
> Regards,
> --kenneth
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message