tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vyacheslav Pedak" <vpe...@geocities.com>
Subject Re: JSP cannot work, Bug of NT(MS) or bug of JDK(SUN)?
Date Thu, 02 Mar 2000 06:25:37 GMT

----- Original Message -----
From: Sun Yiyi <yysun@ONLINE.EMICH.EDU>
To: <tomcat-dev@jakarta.apache.org>
Sent: Thursday, March 02, 2000 6:50 AM
Subject: Re: JSP cannot work, Bug of NT(MS) or bug of JDK(SUN)?


> Hi, Mandar,
>
> Thanks for your reply.
>
> I have used <%@ page contentType="text/html;charset=gb2312" %>, it doesn't
> work.
>
> For my JSP statement <% out.print("<h1>отй╬жпнд</h1><br>");
%>,
>
> the servlet code generated by Tomcat under English NT is:
>
>
>
out.print("<h1>\u00cf\u00d4\u00ca\u00be\u00d6\u00d0\u00ce\u00c4</h1><br>");
> (It works!)
>
>
> And here is code generated by Tomcat under Chinese NT:
>
>     out.print("<h1>>:-\u0087</h1><br>");
>                              -----
>                              ^^^
>
> Why it has this >: ?   (So angry?)
>

I have the same problem with russian language
and I can solve it by encoding all chars in JSP file by unicode
(&#<unicode>;)
This is not the best method, but I can not find another.

Vyacheslav Pedak.


Mime
View raw message