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 2009/01/29 00:55:29 UTC
DO NOT REPLY [Bug 46621] New: Does not handle unicode characters in
the Get request
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¬oken=yes
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Servlet & JSP API
AssignedTo: dev@tomcat.apache.org
ReportedBy: aizmaylov@advisorsoftware.com
I have the following URL:
http://localhost:8080/examples/test.jsp?classIEligible=false&name=ZZz%u2122aaa%20bbb¬oken=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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46621] Does not handle unicode characters in the
Get request
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46621
Tim Whittington <Ti...@orionhealth.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Tim Whittington <Ti...@orionhealth.com> 2009-01-28 23:13:44 PST ---
The URL is not encoded correctly.
Have a read of http://en.wikipedia.org/wiki/Percent-encoding (specifically the
section on application/x-www-form-urlencoded) for how it should be done.
Any further questions about how to encode URLs should be directed to the users
group.
--
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org