Indeed, I had the same problem on 5.0.25 once, use this filter in your web.xml
to have UTF-8 encoding for all requests.
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>filters.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Regards,
Q
> -----Original Message-----
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: 06 April 2005 17:15
> To: Tomcat Users List
> Subject: Re: URL encoding/decoding of UTF-8 characters
>
>
> It is a lack of agreed standard problem. You can force Tomcat to use
> UTF-8 encoding by setting the URIEncoding parameter on the connector.
> There are some other parameters that you can set as well. See
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
>
> Mark
>
> Steve Bosman wrote:
> > I raised this on the struts mailing list and had no joy there, but
> > since then I've found out that it appears to be a tomcat specific
> > problem.
> >
> > The struts 1.1. application I am working on has some frameset stuff
> > (which I personally hate, but some things you are forced to live
> > with), occasionally frames within the frameset are set with
> parameters
> > in the URL which is output using html:rewrite (normally as
> the result
> > of failed actions). If a parameter has UTF-8 characters, e.g.
> > 5-ÐÐÑ-2005 this is encoded as this:
> >
> > /foo.do?date=5-%D0%B0%D0%BF%D1%80-2005
> >
> > By the time the date arrives in my ActionForm the value is now
> > 5-ÃÂÃÂÃ?-2005. I have tried this on weblogic, websphere and oc4j and
> > it returns the correct string using those servers. This
> application is
> > running on tomcat 5.0.28 and what I would like to know is: is this a
> > struts problem, a tomcat problem or my problem and if so does anyone
> > have suggestions as to how to fix it?
> >
> > thanks for any help,
> >
> > Steve Bosman
> >
> >
> ---------------------------------------------------------------------
> > 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]
>
>