tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomislav Brkljačić <>
Subject Re: [ win xp and win server 2003 ] tomcat utf8 encoding
Date Sat, 09 Apr 2011 16:53:41 GMT

I gave the "add the filter and bunch of Spring jars" method a try and it
turned out to be a success! 

Filter code :


And all the jars from Spring 3.1.0 M distro were copied in the tomcat/lib

Andre & Cris, a beer in your name tonight.

Cheers! :)

Christopher Schultz-2 wrote:
> Hash: SHA1
> André,
> On 4/8/2011 11:50 AM, André Warnier wrote:
>> Tomislav Brkljačić wrote:
>>> The remote machine gives the wrong "result".
>>> I wrote on the mailing list of the BPM software, the discussion is still
>>> alive.
>>> Maybe i could try to force a CharacterEncodingFilter filter on tomcat.
>>> Something like
>>> this .
>> Don't do that.  Your problem is with the file *name*, not with the file
>> content.
>> Filters work on the content.
>> I think you could make a real mess of everything by adding a content
>> filter.  I don't think that Tomcat would use it in this case, but if it
>> does, it will filter the whole multi-part body (headers and contents),
>> which is certainly not what you want here.
> If the multipart form-handler uses an InputStream to read the request
> body, it won't matter what the character encoding is, anyway. I suspect
> an InputStream will be used, since that is entirely appropriate in this
> case. On the other hand, setting the character encoding might trigger
> the multipart parsing library to use the preferred encoding to translate
> filename bytes into characters. One can dream.
> - -chris
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla -
> nsYAni7LNi0PeGjgGGhxxZadvQOh6QuY
> =VwYO
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Tomcat - User mailing list archive at

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

View raw message