Hi, you can specify the utf-8 encoding with a filter. All you need to do is
implement a EncodingFilter class, and then in your deployment descriptor add the
<filter> element as
follows:
<filter>
<filter-name>EncodingFilter</filter-name>
<display-name>EncodingFilter</display-name>
<description>UTF-8 encoding</description>
<filter-class>org.mysite.EncodingFilter</filter-class>
<init-param>
<param-name>targetEncoding</param-name>
<param-value>utf-8</param-value>
</init-param>
</filter>
Hope this helps:)
-Yan
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 6:49 AM
To: Tomcat Users List
Subject: UTF-8 encoding
Hi!
I have a web-application which on the serverside needs UTF-8 encoding. I
tried to install and run apache/tomcat on a Windows-XP environment, and
the server says, the encoding is not UTF-8. same applicationwith the same
apache/tomcat version runs correctly on a windows 2000 environment. Is
this a XP specific problem and is there any possibility to force tomcat to
send data in UTF-8 encoding.
Best regards
bab
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]