Class CharacterEncodingFilter
Translations of this material:
- into Russian: Class CharacterEncodingFilter. 19% translated in draft.
-
Submitted for translation by s_valdemar 08.09.2010
Translate into another language
Text
setForceEncoding
public void setForceEncoding(boolean forceEncoding)
Set whether the configured encoding of this filter is supposed to override existing request and response encodings.
Default is "false", i.e. do not modify the encoding if ServletRequest.getCharacterEncoding() returns a non-null value. Switch this to "true" to enforce the specified encoding in any case, applying it as default response encoding as well.
Note that the response encoding will only be set on Servlet 2.4+ containers, since Servlet 2.3 did not provide a facility for setting a default response encoding.
