Tagged articles
2 articles
Page 1 of 1
Aotu Lab
Aotu Lab
Jun 30, 2017 · Fundamentals

Why Do escape and encodeURI Encode URLs Differently? Explore Percent-Encoding

This article explains the differences between JavaScript’s escape, encodeURI, and encodeURIComponent functions, detailing their encoding rules, percent‑encoding standards, reserved and unreserved characters, and how Unicode characters are transformed into UTF‑8 byte sequences, while also covering ASCII, Unicode, and UTF‑8 fundamentals.

JavaScriptURL encodingUTF-8
0 likes · 11 min read
Why Do escape and encodeURI Encode URLs Differently? Explore Percent-Encoding