encodeURI transforms certain characters in URIs into UTF-8 equivalents. It supersedes the older escape function.
decodeURI reverses the transformation.
encodeURIComponent works similarly to encodeURI, but where encodeURI works with entire URIs or URLs, encodeURIComponent works with any query string.
decodeURIComponent reverses the transformation.
Special characters.