..
Android Smart Visitor

Encodes characters in the given string as '%'-escaped octets using the UTF-8 scheme

August 15, 2011 | By Andro ID

The android.net.Uri class provide a method encode() to encode characters in the given string as '%'-escaped octets using the UTF-8 scheme. Leaves letters ("A-Z", "a-z"), numbers ("0-9"), and unreserved characters ("_-!.~'()*") intact. Encodes all other characters.



example:

        String src = "ABC def";

String dest = Uri.encode(src);





It convert "ABC def" to "ABC%20def"


addtomyyahoo4 Subscribe in NewsGator Online Add to My AOL
Subscribe with Bloglines Add to netvibes Add to Google