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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to