Hi Chris
Thanks for the reply.
On Thu, 7 Feb 2002 12:32:27 -0000
"Chris Birch" <[EMAIL PROTECTED]> wrote:
> 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.
They are outside - Japanese Characters.
> You will
> need to set the appropiate content type in response object.
Isn't this done by
<%@ page contentType="text/html; charset=UTF-8" %>
or do I need to do this in the Action.perform() method by
response.setContentType("text/html;charset=UTF-8;");
?
>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.
do you mean
<%@ page contentType="text/html; charset=UTF-8" %>
or
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>
> I saw a post on here a while ago that said IE often ignores the charset
> specified and it had to be changed manually.
I shall watch out for this.
Thanks for the help
--
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]>