With tomcat if all your jsp's in all your contexts use UTF-8 you can
specify the encoding to be used to interpret JPs.
I had to have per context encoding so I couldn't take advantage of that.
I ended up converting all jsp's that needed a different default encoding
to jsp documents (i.e. xml format).
I also had to make a new Default servlet that allowed me to assume the
default encoding of non-jsp resources on a per context basis. (*.txt and
*.htm resources in my case).
I think that's all I had to do.
HTH
Brett Knights
Matt Raible wrote:
Unfortunately, I don't know the solution to your problem. I tried
adding Tamil (யூனிகோட்) to hello.jsp in AppFuse 2.x's helloworld
example and it doesn't work either.
I tried removing all filter-mappings from web.xml and starting Jetty
with "-Dorg.mortbay.util.URI.charset=UTF-8", but not dice. It still
doesn't work for me.
In Tomcat, you might try adding URIEncoding="UTF-8" to the <Connector>
element in $CATALINA_HOME/conf/server.xml.
Please let us know if you figure out a solution.
Matt
On 5/30/07, MO <[EMAIL PROTECTED]> wrote:
No. :(
The only difference between the test.html and test.jsp is that the
test.html is redirected to a JSP using struts. When I call test.jsp,
all the same filters are applied (Encoding filter, security filter
and locale filter).
One of the character I had a problem with is a "tamil" character.
look at this page
http://www.macchiato.com/unicode/Unicode_transcriptions.html under
"Tamil", the last character. It's always replaced buy three
caracthers, one "foreign" carcter and two question marks.
On 5/30/07, Matt Raible <[EMAIL PROTECTED]> wrote:
>
> If you comment out the gzipFilter's mapping in web.xml, does it
fix the problem?
>
> Matt
>
> On 5/30/07, MO <[EMAIL PROTECTED]> wrote:
> > Hi all
> >
> > I'm trying to use UTF-8 with Appfuse but I have a problem
displaying some
> > characters.
> > I copied some asian and other kind of characters from this page :
> > http://www.macchiato.com/unicode/Unicode_transcriptions.html
> > and pasted it directly in a JSP page (with eclipse).
> > When I display the page by using a global foward with struts,
some (not all
> > of them) characthers are changed with question marks.
> > When I display the JSP page directly without using the foward,
all the
> > characters are the same as in the original JSP page.
> > Example : when I use the url "/test.html" wich is a redirect to
> > WEB-INF/pages/test.jsp, some characters are changed. If I copy
test.jsp
> > directly at the root of the webapp, everything is displaying OK.
> >
> > I use Appfuse 1.9.4 under windows with Eclipse.
> > In the browser the charset used to read the page is UTF-8 (if
you go to the
> > view/character encoding menu), the response (the http header) is
saying that
> > it's UTF-8, the request and the response is set to UTF-8 with a
filter, the
> > jsp file is written in UTF-8 with Eclipse, tomcat config (
server.xml in
> > connector tag) is set to UTF-8... Any idea ?
> >
> > Thank you
> > Mark
> >
> >
> >
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]