Emoji Encoding
summary
Explains why '👩🏿🎤'.length = 7 by breaking it into two UTF‑16 surrogate pairs for each astral emoji plus skin‑tone modifiers and zero width joiner glue and a final microphone code point, shows JavaScript using UCS‑2/UTF‑16 so .length and split miscount, demonstrates fixes with String.prototype.normalize and surrogate‑pair math, cites tools like Matthias Baynard’s pile of poo test, gives numbers (over 90% of users use emoji, 5 billion/day on Messenger, Unicode 13 in Mar 2020), and notes the hijab emoji proposal succeeded.
AI-written summary · about
chapters (9)
- 0:00Emoji encoding intro
- 1:06UTF-8 in web dev
- 6:27Unicode history and purpose
- 10:41UTF encoding formats
- 12:52JavaScript combining marks
- 17:52Emojis and Unicode Astral Planes
- 21:43Compound emoji sequences
- 24:14Cultural emoji differences
- 26:22Proposing new emojis








