๐ฃUnicode Codepoint & UTF-8 Inspector Documentation & Guide
๐How to Inspect Character Encodings
- Paste Text or Emoji: Enter up to 120 characters of text, symbols, or suspect hidden characters.
- Inspect Codepoints: Click Inspect Codepoints to decode every astral and BMP codepoint.
- Copy Escapes or Table: Review exact U+ hex IDs, UTF-8 byte lengths, and copy-paste the table.
โ๏ธAstral Surrogate-Free `Array.from()` Codepoint Decodingโผ
Using `Array.from()` with `.codePointAt(0)` and `TextEncoder()` iterates true Unicode scalar values rather than broken UTF-16 halves, accurately decoding 4-byte emojis (`U+1F680` ๐ = `F0 9F 9A 80`) alongside BMP characters (`โฌ` `U+20AC` = `E2 82 AC`).
๐Formula & Mathematical Architectureโผ
๐งฎConcrete Worked Examplesโผ
โฌ รฉโฌ = U+20AC (E2 82 AC) | รฉ = U+00E9 (C3 A9)Shows exact multi-byte UTF-8 representation.
A\u200BBReveals U+200B (E2 80 8B) right between A and BPinpoints invisible characters causing database lookup mismatches.
โ ๏ธCommon Pitfalls & Edge Casesโผ
- โ ๏ธUsing `.length` or `.charCodeAt()` on emojis in JavaScript, which splits astral emojis into broken 16-bit surrogates.
- โ ๏ธConfusing composed `'รฉ'` (`U+00E9`) with decomposed `'e'` + `'\u0301'` (`U+0065 U+0301`).
- โ ๏ธUsing unescaped surrogate pairs instead of `\u{1F680}` in modern ES6 templates.
๐กDebugging Encoding & Typographyโผ
- Spotting lookalike homoglyph domains or invisible zero-width spaces in copied strings.
- Grabbing exact CSS/JS/HTML escape sequences for icon glyphs and currency symbols.