I am having some problems with a struts based application in that the
browser does not seem to change to UTF-8 encoding and as a result, i am
losing some characters. I have read quite a few postings regarding i18n
including this excerpt:

1) Specify the content type for the JSP output:

    <%@ page contentType="text/html; charset=utf-8" %>

You can also do this by setting the content type header manually, using
response.setContentType().

2) Specify the content type to the browser:

    <meta http-equiv="content-type" content="text/html; charset=utf-8">

3) Specify the default content type to the container. In our case, we are
using Resin, and so do this:

    <web-app id='/' character-encoding='utf-8' ... >


I have changed the jsp for the first 2 but the browser still doesn't
recognise that it is meant to be UTF-8. Has anyone any experience of this
or know how to resolve it? I have been unable to do the last step in the
web xml as i dont know what the context-param name would be for
silverstream - does anyone know?
I think the web.xml should look something like:
<web-app>
        <!-- configure input charset to be utf-8 -->
        <context-param>
                <param-name>weblogic.httpd.inputCharset./*</param-name>
                <param-value>UTF-8</param-value>
        </context-param>
...
</web-app>

but with a different param-name.

Any clues as to why UTF-8 isn't working would be appreciated.

Russell


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

Reply via email to