-1

I have a URL that looks like below:

https://www.xyz.net/test%3Fkey%3Dvalue

How do I encode it to look like below:

https://www.xyz.net/test?key=value

I guess I need to use the URL Encoding techniques or?

joesan
  • 13,963
  • 27
  • 95
  • 232
  • actually you need to decode it, but you're on the right way indeed. Keep on going, try some code and come back here if you get stuck. – Laurent S. Jul 09 '14 at 13:11
  • It is a [duplicate](http://stackoverflow.com/questions/6138127/how-to-do-url-decoding-in-java) – Jens Jul 09 '14 at 13:13

1 Answers1

0

java.net.URLDecoder.decode(resourceURL, "UTF-8") is the answer!

joesan
  • 13,963
  • 27
  • 95
  • 232