Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blackberry URL encoder

I need to encode a URL using HTTP GET request in Blackberry. Can any one help me find how do I achieve this.

like image 851
Neo Avatar asked Jul 31 '09 08:07

Neo


1 Answers

Whyt don't you use RIM's URLEncodedPostData?

private String encodeUrl(String hsURL) {
    URLEncodedPostData urlEncoder = new URLEncodedPostData("UTF-8", false);
    urlEncoder.setData(hsURL);
    hsURL = urlEncoder.toString();
    return hsURL;
}
like image 176
Maksym Gontar Avatar answered Sep 29 '22 08:09

Maksym Gontar