Reading the output
Every character has a codepoint (U+0041 = A). UTF-8 encodes it as 1–4 bytes; UTF-16 uses one or two 16-bit units — emoji beyond U+FFFF appear as surrogate pairs in the JS escape.
Frequently asked questions
Why does an emoji show two escapes?
Characters above U+FFFF are stored as UTF-16 surrogate pairs — one emoji, two code units.
Invisible characters?
Zero-width spaces and control chars appear as their codepoint even though nothing renders.
Combining marks?
Each combining character gets its own row — an accented letter may be two codepoints.