Java Urlencoder

URLEncoder class of "java.net" package provides two static methods
that are used to convert a string into a fully encoded URL string.
- encode(String s): This method translates a string into
x-www-form-urlencoded format using the platform's default encoding scheme.
- encode(String s, String enc): This method translates a string into
application/x-www-form-urlencoded format using the supplied encoding scheme.
If the supplied encoding scheme is not supported then
UnsupportedEncodingException is thrown.
Read more at:
http:/www.roseindia.net/java/network/encodertest.shtml

|
Current Comments
0 comments so far (post your own) View All Comments Latest 10 Comments: