Handle Unicode text, emoji, encoding, normalization, code points, and safe storage.
Lessons
Read the U+XXXX notation for Unicode characters.
Code Points is easiest to learn by reading the example, changing it, and observing the result.
// Every character has a Unicode code point, written U+XXXX
const chars = ['A', 'é', 'あ', '😀'];
for (const ch of chars) {
const cp = ch.codePointAt(0).toString(16).toUpperCase().padStart(4, '0');
console.log(ch, '-> U+' + cp);
}
// A -> U+0041 | é -> U+00E9 | あ -> U+3042 | 😀 -> U+1F600Practice the Code Points example in a small scratch file, then explain what changed and why.