tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ing. Gabriel Gajdos" <Gabriel.Gaj...@ses.sk>
Subject RE: RE2: Jsp compile option for Big5 encoding / encoding question
Date Tue, 04 Dec 2001 08:02:18 GMT
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>


Mime
View raw message