tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yilmaz" <yil...@hwajet.com.tw>
Subject Re: RE2: Jsp compile option for Big5 encoding / encoding question
Date Wed, 05 Dec 2001 14:26:15 GMT
hi Gabriel,
i was having a similar proble a few months ago with big5 characters
now it works properly  and perfectly.
first of all, my experience is that it depends on OS's default charset.
my configuration is like this:
at the top of the page i set charset with:
<%@ page contentType="text/html; charset=Big5"%>
and also a the header part of the html code i have this:

<meta http-equiv="Content-Type" content="text/html; charset=big5">
these two together sets the charset correctly, one for the dynamic
characters, and the other
for the static html characters.
hope this helps
cheers :)
----- Original Message -----
From: "Ing. Gabriel Gajdos" <Gabriel.Gajdos@ses.sk>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, December 04, 2001 4:02 PM
Subject: RE: RE2: Jsp compile option for Big5 encoding / encoding question


> Thanx Craig, but I affraid, this was not the problem.
>
> | >
> | > JSP (start file):
> | > <%
> | >   String contentType = "text/html;charset=windows-1250";
> | >   response.setContentType(contentType);
> | > %>
> | >
> |
> | The setting "windows-1250" is not a valid character encoding name in
Java.
> | Try "Big5" instead for Traditional Chinese.  Valid character encoding
> | names are listed in the Internationalization documentation of the JDK:
> |
> |   http://java.sun.com/j2se/1.4/docs/guide/intl/encoding.doc.html
> |
> | Craig
>
> "windows-1250" IS WORKING :
> I mean, in servlets and in JSP too (when set as <%@ %>).
>
> The above mentioned code does NOT change the Content Type correctly to ANY
encoding.
>
> Anyway, I tried to change my encoding to "Cp1250" which is listed in sun's
encoding.doc.html.
> BTW, windows-1250 is Windows Eastern European, not Chinese, but this is
not important at the moment...
> ;-)
>
> Cp1250 causes the same wrong result.
>
> Anyway, I also tried (just for fun) to change the Content Type to
"text/html;charset=Big5".
> The result is the same, without any chinese signs...
>
> So what will be the next try?
> :-))
>
> Thanx again.
>
> Gabriel
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message