> Is UTF-8 the reason why you are using your custom decoding?
> [...]
> You should be able to use HttpServletRequest.getPathInfo() to get the
> decoded value.

Not really. I could probably be using getPathInfo() for getting the
decoded request. But note that I am also decoding both the former urls
from the CSV input file and comparing the result with the decoded
request, so in any case I have to use some custom decoder in my code.
In these kinds of situations, I reflexively do the decoding with the
same decoder to make absolutely sure that the decoded strings match
for identical inputs. Otherwise if I let the servlet container use its
decoder for requests and I use my own custom decoder to decode the
mapping table, I may run into trouble unnecessary and - in the worst
case - make my application application server-specific. Of course,
such a thing could never happen with Tomcat! :-)

Thanks for pointing this out!

Tero Karttunen

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

Reply via email to