I have used a sevlet filter and  translte from ISO8859_1 to UTF8 just works
through all application.

> > 1) there are 20 results for Djavax.servlet.request.encoding in google ^^
> > (but am really not sure this parameter really exists in tomcat)
>
> My bad. I kept the "-" in front which, of course, suppressed the
> results. The option isn't in the spec and isn't in the 5.5.x code
> base. Maybe it is an option from an old version since the only
> references appear to be Tomcat related.

Adding the Djavax.servlet.request.encoding gave me corect UTF8 encoding for
servlets that insert stuff directly in database which was problematic.
JAVA_OPTS="-Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8
${JAVA_OPTS}"

The corect one thanx to david

>
> > 2) URIEncoding="UTF-8" set the encoding used for html link, the default
> > is platform dependent.
>
> Indeed, which is why I mentioned it. As per the docs and the spec, the
> default is always ISO-8859-1 regardless of the platform default
> encoding. Any query parameters in the URL will be decoded on this
> basis. request.setEncoding() has no effect on this unless
> useBodyEncodingForURI="true" is set on the connector.

I didnt knew about this parameter that is probably why URIEncoding="UTF-8"
had no effect while I was testing .

> The other place where encoding can trip you up is if you include
> static resources within a JSP. There is a fileEncoding parameter on
> the default servlet that may help.

I dont know about this either. How do I get  access to  default servlet

Thank you Mark and David
Zissis



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to