How do I handle International Characters

2005-05-07 Thread David Harland
I am using Tomcat 5.0 and I am trying to receive and
send  thai characters. Can someone please tell me the
simplest ways to do this.

Many thanks

Dave.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I handle International Characters

2005-05-07 Thread David Harland
Hi Mark

If I have tried the following.

response.setContentType(text/html;
charset=utf-8);
PrintWriter out = response.getWriter();
request.setCharacterEncoding(UTF-8);
String test=request.getParameter(login);
out.println(Input string:+test);
out.println(URLEncoder.encode(test,UTF-8));
out.close();

What is output to the browser is Unicode instead of
the characters. If I look at the source of the
returned page. I see
#3615;#3627;#3585;#3615;#3627;#3585; instead of
characters like
#3585;#3619;#3640;#3591;#3648;#3607;#3614;#3631;.

Regards

David.

--- Mark Thomas [EMAIL PROTECTED] wrote:

http://jakarta.apache.org/tomcat/faq/misc.html#tomcat5CharEncoding
 
 Mark
 
 David Harland wrote:
  I am using Tomcat 5.0 and I am trying to receive
 and
  send  thai characters. Can someone please tell me
 the
  simplest ways to do this.
  
  Many thanks
  
  Dave.
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around 
  http://mail.yahoo.com 
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I handle International Characters

2005-05-07 Thread David Harland
#3655;Hi Mark,

Many thanks for your help.

Dave.

--- Mark Thomas [EMAIL PROTECTED] wrote:
 David,
 
 You also need to look at how the parameters are set
 in the first place. 
 Are you using GET or POST? If you are using GET have
 you set any of the 
 character encoding settings on the connector?
 
 The following index.jsp works for me:
 %@ page contentType=text/html; charset=UTF-8 %
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01
 Transitional//EN
 html
head
  titleCharacter encoding test page/title
/head
body
  pData posted to this form was:
  %
request.setCharacterEncoding(UTF-8);
out.print(request.getParameter(mydata));
  %
 
  /p
  form method=post action=index.jsp
input type=text name=mydata
input type=submit value=Submit /
input type=reset value=Reset /
  /form
/body
 /html
 
 
 David Harland wrote:
  Hi Mark
  
  If I have tried the following.
  
  response.setContentType(text/html;
  charset=utf-8);
  PrintWriter out = response.getWriter();
  request.setCharacterEncoding(UTF-8);
  String test=request.getParameter(login);
  out.println(Input string:+test);
 
 out.println(URLEncoder.encode(test,UTF-8));
  out.close();
  
  What is output to the browser is Unicode instead
 of
  the characters. If I look at the source of the
  returned page. I see
  #3615;#3627;#3585;#3615;#3627;#3585; instead
 of
  characters like
 

#3585;#3619;#3640;#3591;#3648;#3607;#3614;#3631;.
  
  Regards
  
  David.
  
  --- Mark Thomas [EMAIL PROTECTED] wrote:
  
 

http://jakarta.apache.org/tomcat/faq/misc.html#tomcat5CharEncoding
  
 Mark
 
 David Harland wrote:
 
 I am using Tomcat 5.0 and I am trying to receive
 
 and
 
 send  thai characters. Can someone please tell me
 
 the
 
 simplest ways to do this.
 
 Many thanks
 
 Dave.
 

__
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 
 protection around 
 
 http://mail.yahoo.com 
 
 
 
 

-
  
 To unsubscribe, e-mail:
 
 [EMAIL PROTECTED]
 
 For additional commands, e-mail:
 
 [EMAIL PROTECTED]
 
 
 
 
 
 

-
  
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
  
  
  
  
  __ 
  Yahoo! Mail Mobile 
  Take Yahoo! Mail with you! Check email on your
 mobile phone. 
  http://mobile.yahoo.com/learn/mail 
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat

2005-01-25 Thread David Harland
Hi,

I am using Apache 2x and Tomcat 5x. How do I set a
virual host to have it default to a specific web app
under tomcat. What is the easiest way to do this. eg

www.test.com

virtualhost default page to /test/index.jsp under
tomcat.

www.test2.com 

virtualhost default page to /test2/index.jsp under
tomcat.

Many thanks

Dave.





__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat

2005-01-20 Thread David Harland
Hi,

How do you set up a VirtualHost so that virtual host
forwards its requests onto an application in tomcat.

Thanks

Dave.



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]