On Mon, 3 Dec 2001, Ing. Gabriel Gajdos wrote:

> Date: Mon, 3 Dec 2001 11:02:50 +0100
> From: Ing. Gabriel Gajdos <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: RE2: Jsp compile option for Big5 encoding / encoding question
>
> Thanx, Craig, but something is wrong...
>
> | Yes, dynamically setting the content type and character encoding is
> | supported in JSP 1.2 (and therefore in Tomcat 4).  You have three choices:
> |
> | * You can use a scriptlet to set the content type at the top of your
> |   JSP page:
> |
> |   <%
> |     String contentType = "text/html;charset=xxxxx"; // Or whatever
> |     response.setContentType(contentType);
> |   %>
>
> without success.
> I am using Tomcat 4.0.1.
> Also tried Tomcat 3.2.3 with very similar behaviour (and result).
>
> 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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to