URL encoding


URL encoding - conversion of URLs that contain special characters or characters of national alphabets. Occurs in two steps: first, each character is encoded in Unicode (UTF-8) in a sequence of two bytes, and then each byte of that sequence is written in a hexadecimal representation.

Some characters cannot be part of a URL (for example, a space), and some other characters have a special meaning in the URL: for example, the # symbol can be used to further specify a subsection (or fragment) of a document. In HTML forms, the = character is used to separate the name from the value. The generic URI syntax uses URL encoding to solve this problem, while HTML forms do some additional substitutions rather than use percent encoding for all the characters. The space is encoded as " + "or" %20".