Re: How do I handle International Characters

2005-05-10 Thread Harry Mantheakis
Hi Lutz As far as HTML forms are concerned, you can force the browser to submit them to the server using a particular charset by adding the accept-charset attribute to the form tag, i.e.: form accept-charset=utf-8 ... ... /form

Re: How do I handle International Characters

2005-05-10 Thread Christoph Kutzinski
Lutz Zetzsche wrote: Hi Harry, Am Montag, 9. Mai 2005 20:53 schrieb Harry Mantheakis: Browsers should (and mostly do, I think) respect the encoding you specify when setting the response content-type (and the meta-tag content-type) so you can simply assume (in your filter) that your form-data

RE: How do I handle International Characters

2005-05-10 Thread Allistair Crossley
To: Tomcat Users List Subject: Re: How do I handle International Characters Lutz Zetzsche wrote: Hi Harry, Am Montag, 9. Mai 2005 20:53 schrieb Harry Mantheakis: Browsers should (and mostly do, I think) respect the encoding you specify when setting the response content-type

Re: How do I handle International Characters

2005-05-10 Thread Harry Mantheakis
A method we have used with success for inbound request encoding is to add a Servlet Filter to our application whose sole job is to call request.setCharacterEncoding(UTF-8) Allistair. And you might consider adding a call to: response.setContentType( text/html; charset=UTF-8 ); In the

Re: How do I handle International Characters

2005-05-09 Thread Harry Mantheakis
Hello 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. This worked for me with Japanese characters: Use a filter to set encodings for both requests and responses: request.setCharacterEncoding( UTF-8

Re: How do I handle International Characters

2005-05-09 Thread haim
I am using the following plug-in for properties file. http://propedit.sourceforge.jp/index_en.html Helps when using messages resources , eliminate the need of native2ascii.exe Regards Haim Harry Mantheakis wrote: Hello I am using Tomcat 5.0 and I am trying to receive and send thai characters.

Re: How do I handle International Characters

2005-05-09 Thread Lutz Zetzsche
Hi Harry, Am Montag, 9. Mai 2005 20:53 schrieb Harry Mantheakis: Browsers should (and mostly do, I think) respect the encoding you specify when setting the response content-type (and the meta-tag content-type) so you can simply assume (in your filter) that your form-data will be in UTF-8.

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

Re: How do I handle International Characters

2005-05-07 Thread Mark Thomas
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

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);

Re: How do I handle International Characters

2005-05-07 Thread Mark Thomas
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

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?