DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36814>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36814
------- Additional Comments From Udo.Walker@abas.de 2005-09-27 15:21 -------
Maybe I am too silly to do it, but for my test case it does not work setting the
encoding with a filter. I did this:
in the web.xml as the first filter in the list:
<filter>
<filter-name>Set Character Encoding</filter-name>
<filter-class>package.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
This is the filter which is packaged as example with Tomcat.
If I do now a post with UTF-8 characters all submitted UTF-8 characters are
corrupted.
What am I doing wrong?
There is also a problem with valves. If you read a parameter from the request
inside a valve then the character encoding is automatically set to the default
(spec) value which is ISO-8859-1. Later you can not change this in a filter anymore.
(If I use my patch instead, everything is fine, no matter where I try to read
parameters from the request.)
With regards,
Udo
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
|