URL Encoded Data

Hi,

I'm trying to extract some data that has been URL encoded. I'm sure this is a common issue so can you point me at a relevant post or part of the documentation that deals with this (I've struggled to find an answer using search).

Thanks

Alex

Sorry for the delay-- it's

Sorry for the delay-- it's been busy lately :)

Try the java.net.URLDecoder, or java.net.URLEncoder, whichever is appropirate (probably the decoder, here).

usage is pretty simple, once I figured it out. there's just a simple static method on the class:


// Interpreted Java
import java.net.URLDecoder;

String result = URLDecoder.decode("some string");