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
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
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
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
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
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.
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.
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://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
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);
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
#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?
12 matches
Mail list logo