Welcome!

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

Reply
New Developer
cristian
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?
Please use plain text.
Developer
marchywka
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.

 

http://www.ietf.org/rfc/rfc1738.txt

 

 

Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Decode URLEncoded Data

Please use plain text.