tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Schlegel <>
Subject Encoding URL fails
Date Mon, 23 Apr 2001 18:39:56 GMT

I have a problem encoding a string containing the character '&' and put
it as param in an URL

If I encode A&P the URLEncoder.encode(value) returns A%26P. But if I put
this result string as parameter in an URL, the URL contains A&P. So what
can I do to have the encoded value in the URL?

I am a little bit confused because if I do the same using a string
containing the character '?' everything is fine!


View raw message