Home Help Java U Java Urlencoder
Questions:Ask|Latest

Related Tutorials


 
 

Share on Google+Share on Google+

Java Urlencoder

Advertisement
URLEncoder class of "java.net" package provides two static methods that are used to convert a string into a fully encoded URL string.

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.

  1. encode(String s):  This method translates a string into x-www-form-urlencoded format using the platform's default encoding scheme.
  2. 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

 

 

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 19, 2009

Related Tutorials

Ask Questions?    Discuss: Java Urlencoder  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com