You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by tom themust <to...@yahoo.com> on 2002/06/06 06:55:59 UTC

Problem in Thai language

Dear Sir,

I write the simple Java class (compile with J2SDK 1.4.0) and running in the command line mode it can display Thai character properly like this :-

System.out.println("������");  // in the double qoute is thai characters, it displays thai correctly

But, when I write the Java SERVLET class (servlet 2.3) and running on Tomcat 4.0.3 (windowsXP Pro.). The problem is my all thai characters displayed as ??????? (question marks) in the web browser. The code is follow :-

out.println("������");  // in the double qoute is thai characters), it displays that character as ??????

 

How can I fix this problem ?

Thanks in advance,

Tom.



---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup

Re: Problem in Thai language

Posted by tom themust <to...@yahoo.com>.
 Thanks Barker, It's work now.
 
Tom.
  Bill Barker <wb...@wilshire.com> wrote: Try request.setContentType("text/html; charset=UTF-8"). Substitute
/UTF-8/thai-char-set/ as necessary.

----- Original Message -----
From: "tom themust" 
To: 
Sent: Wednesday, June 05, 2002 9:55 PM
Subject: Problem in Thai language


>
> Dear Sir,
>
> I write the simple Java class (compile with J2SDK 1.4.0) and running in
the command line mode it can display Thai character properly like this :-
>
> System.out.println("������"); // in the double qoute is thai characters,
it displays thai correctly
>
> But, when I write the Java SERVLET class (servlet 2.3) and running on
Tomcat 4.0.3 (windowsXP Pro.). The problem is my all thai characters
displayed as ??????? (question marks) in the web browser. The code is follow
:-
>
> out.println("������"); // in the double qoute is thai characters), it
displays that character as ??????
>
>
>
> How can I fix this problem ?
>
> Thanks in advance,
>
> Tom.
>
>
>
> ---------------------------------
> Do You Yahoo!?
> Sign-up for Video Highlights of 2002 FIFA World Cup


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup

Re: Problem in Thai language

Posted by Bill Barker <wb...@wilshire.com>.
Try request.setContentType("text/html; charset=UTF-8").  Substitute
/UTF-8/thai-char-set/ as necessary.

----- Original Message -----
From: "tom themust" <to...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Wednesday, June 05, 2002 9:55 PM
Subject: Problem in Thai language


>
> Dear Sir,
>
> I write the simple Java class (compile with J2SDK 1.4.0) and running in
the command line mode it can display Thai character properly like this :-
>
> System.out.println("ÀÒÉÒä·Â");  // in the double qoute is thai characters,
it displays thai correctly
>
> But, when I write the Java SERVLET class (servlet 2.3) and running on
Tomcat 4.0.3 (windowsXP Pro.). The problem is my all thai characters
displayed as ??????? (question marks) in the web browser. The code is follow
:-
>
> out.println("ÀÒÉÒä·Â");  // in the double qoute is thai characters), it
displays that character as ??????
>
>
>
> How can I fix this problem ?
>
> Thanks in advance,
>
> Tom.
>
>
>
> ---------------------------------
> Do You Yahoo!?
> Sign-up for Video Highlights of 2002 FIFA World Cup


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>