OK,  after some flailing around, I installed a fresh version of tomcat 5.5.26 
and added the test page from the FAQ.  I'm testing two ways One using the 
submit button to test the POST, and testing response to GET by encoding the 
"query" Romans à clef as:
http://resdev1.dev.oclc.org:20000/textEncoding.jsp?mydata=%20Romans%20a%CC%80%20clef.

I made sure to add the URIEncoding = "UTF-8"  a/v pair to the connector 
declaration/definition.

>From this base, I began to add in various libraries to 
>webapps/ROOT/WEB-INF/lib.  The first two showed some aberrant behavior.  I 
>added commons-logging.jar and log4j-1.2.15.jar.  When log4j is set to an INFO 
>level of output both POST and GET work as advertised.  When it is set to 
>DEBUG, the POST test fails and the GET works.  So there is something in log4j 
>that munges the parameter sstring.

This may not be my particular problem.  I post it to the list as informations 
that some library outside of tomcat can munge UTF-8 encoding.

-----Original Message-----
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 17, 2008 4:10 PM
To: Tomcat Users List
Subject: Re: UTF-8 encoding problems

Thompson,Roger wrote:
> I saw that--All it really says is to set URIEncoding="UTF-8" the tips 
> say to use POST-- cannot do in a RESTful service.

Have you actually tried the test? Did it work? If you read the sample code it 
also points to a number of other things the service needs to do in terms of 
setting encoding etc.

If the test works and your service doesn't then either you haven't configured 
the service properly, there is a bug in the framework or the filters are 
causing problems.

I fixed a whole bunch of encoding issues a while back and there haven't been 
any bugs since. That isn't to say there aren't any - just that the odds of this 
being a Tomcat problem are pretty slim.

You might want to take a look at TcpMon from the Apache Axis project. I have 
found it very useful when debugging similar issues.

Mark


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



---------------------------------------------------------------------
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