Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 1
Registered: ‎01-13-2009
My Device: Not Specified

Decode URLEncoded Data

I'm getting a response back from a webserver and it's in a URLencoded format. I haven't found a class that helps decode the text. Is there a class in the SDK that does this automatically?
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Decode URLEncoded Data

I think I've looked in the past and had no luck. I just did a quick check in RIM classes and javax

and didn't find anything in the javadocs that matched this,

$ grep -i url *.txt | grep -i decode


I also had a problem decoding html ( "&" ) and was hoping something from the XML parser exposed useful

methods as it has to do similar things but no luck.

URL decoding isn't hard, but it does seem dumb to write your own code.





Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Decode URLEncoded Data