posted 17 years ago
I have problem while trying to Encode an URL:
<a href="test.jsp?arg=<%= value %>">Link name</a>
The variable "value" that is transmited can contain some specific characters or foreign characters. So I tried to encode the URL:
<a href="test.jsp?arg=<%= URLEncoder.encode(value, "UTF-8") %>">Link name</a>
It works with specific characters (like %@& ...) but not with foreign characters.
What should I add?
[ June 21, 2006: Message edited by: Pierre Peron ]