JS: Encode URL, Escape String
decodeURI → Changes illegal URL characters to percent encoded form.
For example, character such as ^ [ ] and Unicode character such as em-dash.
[see JS: encodeURI]
decodeURIComponent → Useful for embedding a URL in a URL.
encodeURI but changes more chars, including slash and colon in
[see JS: encodeURIComponent]
unescape → deprecated. Changes some characters to a percent encoded form of the char's Unicode codepoint.
[see JS: escape]
Note: these functions are properties of global object.
[see JS: the Global Object]
JS Character Topic
If you have a question, put $5 at patreon and message me.