Hi,

The following is taken from javax.servlet.ServletResponse:

---
The charset for the MIME body response can be specified with
setContentType(java.lang.String). For example, "text/html;
charset=Shift_JIS". The charset can alternately be set using
setLocale(java.util.Locale). If no charset is specified, ISO-8859-1 will be
used. The setContentType or setLocale method must be called before getWriter
for the charset to affect the construction of the writer.
---

If your UTF-8 chars are inside the normal ascii range then you shouldn't
have a problem, for those outside, its using the wrong encoding.  You will
need to set the appropiate content type in response object.  Also, you must
specify the charset in your HTML (in jsp) as well, otherwise the browser
wont know which charset to use to display the characters.

I saw a post on here a while ago that said IE often ignores the charset
specified and it had to be changed manually.

Hope this helps,
Chris.



-----Original Message-----
From: Antony Stace [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2002 09:25
To: [EMAIL PROTECTED]
Subject: Problem with UTF encoding with Action Form


Hi

I have a jsp page in UTF-8 format with a form in it a user fills out, this
form is a session scope Action Form.
The user then submits the request and the
same page gets returned with the form values from the previous submit on
this screen.  I did not change the
values anyway of the Action Form, they should be the same ones the user
submitted in their first step.  However, all the fields
in this populated form are all garbage.
Any idea where my problem is?

--


Cheers

Tony。
---------------------------------------------------------------------


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


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

Reply via email to