Why Encode a URL?
URL encoding, also known as "percent-encoding," is a mechanism for encoding information in a Uniform Resource Identifier (URI).
URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, they must be converted into a valid format.
Encoding Examples
- Space ( ) %20
- Exclamation (!) %21
- Ampersand (&) %26
- Slash (/) %2F