Re: UTF-8 Problem with Tomcat 5.0.27 and POST

2005-05-12 Thread Steve Bosman
On 5/10/05, Bernhard v. Fromberg <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I desperatly try to POST UTF-8 data to an application using struts.
> GET method works perfectly fine, but post does not.
> I am using CharacterEncodingFilter
> All pages have Content-Type header
> 
> java1.5.0 update 2
> Tomcat 5.0.27
> various Un*x systems.
> 
I think this might be a similar question to one I asked recently and
the following helped me

-- Forwarded message --
From: Mark Thomas <[EMAIL PROTECTED]>
Date: Apr 6, 2005 4:14 PM
Subject: Re: URL encoding/decoding of UTF-8 characters
- Hide quoted text -
To: Tomcat Users List 

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
-- End Forwarded message --

Using link in this mail from the tomcat user maiIing list I have
changed my connector settings to:
   
   
That is I have added URIEncoding="UTF-8" and characters are now
decoded correctly.

Steve

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



URL encoding/decoding of UTF-8 characters

2005-04-06 Thread Steve Bosman
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]