https://issues.apache.org/bugzilla/show_bug.cgi?id=46621

           Summary: Does not handle unicode characters in the Get request
           Product: Tomcat 6
           Version: 6.0.18
          Platform: PC
               URL: http://localhost:8080/examples/test.jsp?classIEligible=f
                    alse&name=ZZz%u2122aaa%20bbb&notoken=yes
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: aizmay...@advisorsoftware.com


I have the following URL:
http://localhost:8080/examples/test.jsp?classIEligible=false&name=ZZz%u2122aaa%20bbb&notoken=yes

As you can see it contains ecaped version of trademark chararter u2122 - that
what javascript does by escaping TM chararter.

Jan 28, 2009 3:51:29 PM org.apache.tomcat.util.http.Parameters
processParameters
WARNING: Parameters: Character decoding failed. Parameter skipped.
java.io.CharConversionException: isHexDigit

and the parameter name is not part of HTTPRequest

just in case I was testing against following JSP:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> 
<%
request.setCharacterEncoding("UTF-8");
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setContentType("text/plain");
%>
<h1>Parameters</h1>
<table border='1'>
<tr><td><b>Key</b></td><td><b>Value</b></td></tr>
<%
        for(Object key:request.getParameterMap().keySet()){
                %><tr><td><%=key
%></td><td><%=request.getParameter(key.toString()) %></td></tr>
                <%
        }

%>      
</table>


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to