You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/12/20 23:03:37 UTC
DO NOT REPLY [Bug 41222] New: - request.getParameter() ignoring the characterEncoding of the Request
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=41222>.
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=41222
Summary: request.getParameter() ignoring the characterEncoding of
the Request
Product: Tomcat 5
Version: 5.0.28
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: critical
Priority: P1
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: davidxkung@yahoo.com
1. I have a form which has one input field:
<form method="post" action="test/testServlet">
<input type="text" name="name">
<input type="submit" value="save">
</form>
2. I enter some accented character in the input field, Jos�.
3. Submit the form (with method="post")
4. I have a fileter which sets the request characterEndoing to UTF-8, before
any request parameter is read
request.setCharacterEncoding("UTF-8");
5. I then call request.getParameter("name"), the value I got is José, instead
of Jos�.
Seems to me the request.getParameter() call is ignoring the characterEncoding I
set earlier in the servlet filter. It's using the default ISO-8859-1 encoding
instead of UTF-8
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41222] - request.getParameter() ignoring the characterEncoding of the Request
Posted by bu...@apache.org.
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=41222>.
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=41222
davidxkung@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org