What is URL Encoding and URL Decoding ?

decoding encoding URL
0
Posted

What is URL Encoding and URL Decoding ?

0

URL encoding is the method of replacing all the spaces and other extra characters into their corresponding Hex Characters and Decoding is the reverse process converting all Hex Characters back their normal form. For Example consider this URL, /ServletsDirectory/Hello’servlet/ When Encoded using URLEncoder.encode(“/ServletsDirectory/Hello’servlet/”) the output is http%3A%2F%2Fwww.javacommerce.com%2FServlets+Directory%2FHello%27servlet%2F This can be decoded back using URLDecoder.decode(“http%3A%2F%2Fwww.javacommerce.

Related Questions