This may help. If any of the filters in the chain do any kind of read to the input stream, then the encoding is fixed from that point on. I had a similar problem with Struts in Tomcat. I solved it by putting a filter in the chain ahead of sturts and calling
  req.setCharacterEncoding("UTF-8");
on the ServletRequest before calling the next filter(s).


Mitch



On 07/13/2010 11:33 AM, Caldarale, Charles R wrote:
From: arun kumar [mailto:arunbha...@yahoo.com]
Subject: Tomcat and Hex characters

What do i have to do to be able to pass hex values of
UTF-8 encoded strings that represent characters of
foreign languages (like say Chines/Japanese) to my
servlet so it is read correctly?

Start by studying this (it's non-trivial, and it's not clear how running inside 
JBoss affects it):
http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

If that doesn't help, come back to the list and tell us what exact Tomcat 
version you're using, along with the JVM level and the platform you're on, and 
the exact changes you've made.  Be precise.

You should probably try to solve the problem on a standalone Tomcat first, then 
apply the working config to JBoss, if possible.

  - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to