Join Nostr
2024-11-26 08:40:41 UTC

Peter Kröner on Nostr: Wait, what? ❤️ is an emoji, so it is built up from surrogate pairs, right? NOPE! ...

Wait, what?

❤️ is an emoji, so it is built up from surrogate pairs, right?

NOPE! Turns out it consists of U+2764 (plain ❤ symbol) and U+FE0F (Variation Selector 16)

This is why you should use Intl.Segmenter() and just deal with its abysmal performance 😭

#javascript #unicode #fml