tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat special character missin in request parameter
Date Wed, 25 Oct 2006 12:57:40 GMT
Christian,

> For example with:
> 
> http://localhost/myapp/index.jsp?test=test&test2=%u2013test2&test3=test3 
> 
> I get only test and test3, test2 is missing completely.

You have encoded your character improperly. URLs must be encoded using
the UTF-8 charset, and then run through HttpServletResponse.encodeURL,
which is likely to result in something more like:

....&test2=%wx%yztest2&test3...

See this port of the HTML spec:
http://www.w3.org/TR/html40/appendix/notes.html#non-ascii-chars

Your "character" specified as %u2013 is invalid with regard to the
specification.

-chris


Mime
View raw message