Re: CharacterEncoding is overridden by setContentType

2010-12-09 Thread Mark Thomas
On 09/12/2010 10:58, Ben wrote: > Hi there, > > I don't get the source code from Tomcat 7.0.5. > > In the javadoc it says: > --This method must preserve any response charset that may already have > -- * been set via a call to response.setContentType(), > response.setLocale(), > -- * or

Re: CharacterEncoding is overridden by setContentType

2010-12-09 Thread Ben
Oh, and I found the force encoding filter does not work if the setContentType is called after. Is that becos of this method? On Dec 9, 2010, at 6:58 PM, Ben wrote: > Hi there, > > I don't get the source code from Tomcat 7.0.5. > > In the javadoc it says: > --This method must preserve any re

CharacterEncoding is overridden by setContentType

2010-12-09 Thread Ben
Hi there, I don't get the source code from Tomcat 7.0.5. In the javadoc it says: --This method must preserve any response charset that may already have -- * been set via a call to response.setContentType(), response.setLocale(), -- * or response.setCharacterEncoding(). But in the code a