Simply I don't get it. You send data over HTTP. You can send data as you wish. What about servlet serving images?
Just send UTF8 encoded data and everything will be allright.
No way Tomcat knows do you want to send cyrrilic letter or french accent letter. It's up to you.
Niki
Harry Mantheakis wrote:


Okay, thanks Yoav.

I got the source, and I can see what's happening - thanks to Google - at
this URL:

http://java.sun.com/blueprints/code/jps131/src/com/sun/j2ee/blueprints/encod
ingfilter/web/EncodingFilter.java.html

The 'doFilter' method sets the encoding for the *request* which does not
seem to address the original question, which was asking how to 'force tomcat
to send data in UTF-8 encoding'.

Interesting filter nevertheless! It is a subject that concerns me.

Kind regards

Harry




Hi,



implement a EncodingFilter class


Where's the interface?


javax.servlet.Filter is the interface.  He probably had
http://java.sun.com/blueprints/code/jps131/api/com/sun/j2ee/blueprints/e
ncodingfilter/web/EncodingFilter.html in mind.

Yoav Shapira





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








Reply via email to