5 ms·
But what do you do when you're processing a string with codepoints that compose into one user-visible glyph? >>> len("🇨🇦") 2
by anaerobicover 6y ago
But what do you do when you're processing a string with codepoints that compose into one user-visible glyph?
>>> len("🇨🇦")
2
- jxy 6y agoyeah, and what do you do when you got a nonexistent country: "🇩🇧".
- Symbiote 6y agoYour example changes length depending on the font. (If a new country gets the code DB, fonts will gradually be updated to include the flag.) I'll bet there are some systems in the PRC that don't include 🇹🇼.