tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernhard v. Fromberg" <>
Subject Re: UTF-8 Problem with Tomcat 5.0.27 and POST
Date Fri, 10 Jun 2005 18:41:27 GMT

I was off for a while.

It seems my problem comes in with Java1.5. I am not sure. I tried to
set it up as shown below. Solves the GET problem.
I use a filter. Solves nothing. I set it up in the struts-config file.
No effect. It seems that something in between sets the request input
stream to i do not know what. I have no idea what to do next.

Struts version?
Debug Servlet?

I have no idea.


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

Using link in this mail from the tomcat user maiIing list I have
changed my connector settings to:
   <Connector port="8080"
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
              enableLookups="false" redirectPort="8443" acceptCount="100"
              debug="0" connectionTimeout="20000"
              disableUploadTimeout="true" URIEncoding="UTF-8" />
   <Connector port="8443"
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
              enableLookups="false" disableUploadTimeout="true"
              acceptCount="100" debug="0" scheme="https" secure="true"
              clientAuth="false" sslProtocol="TLS" URIEncoding="UTF-8" />
That is I have added URIEncoding="UTF-8" and characters are now
decoded correctly.


Mit freundlichen GrĂ¼ssen,
Bernhard Fromberg

Bernhard v. Fromberg | The Virtual Solution
Reitmorstrasse 9 | 80538 Muenchen
Tel +49.89.291 651 26 | Fax +49.89.291 651 27

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message