All About Class URLEncoder in Java

URLEncoder class defines a single static method which is used to convert a String to its URL-encoded form. The space is converted to + and non alphanumeric characters other than underscore are output as two hexadecimal digits following a percentage sign(%).This technique only works for 8-bit characters.This method is used to determine canonical value of an URL specification so that the users uses only characters from an externally portable subset of ASCII which can be correctly handled by computers around teh globe.

The structure of the class is given as :

public class extends java.lang.Object{
public static String encode(String s);
All About Class URLEncoder in Java All About Class URLEncoder in Java Reviewed by Animesh Chatterjee on November 26, 2018 Rating: 5

No comments:

Powered by Blogger.