Encoding & Decoding

Encoding is the process of putting a sequence of characters such as letters, numbers and other special characters into a specialized format for efficient transmission while Decoding is the process of converting an encoded format back into the original sequence of characters. It is completely different from Encryption which we usually misinterpret.

Encoding and decoding are used in data communications and storage. Encoding should NOT be used for transporting sensitive information.

URL Encoding - URLs can only be sent over the Internet using the ASCII character-set and there are instances when URL contains special characters apart from ASCII characters, it needs to be encoded. URLs donot contain spaces and are replaced with a plus (+) sign or with %20.

ASCII Encoding - The Browser(client side) will encode the input according to the character-set used in the web-page and the default character-set in HTML5 is UTF-8.