Why does one emoji use several characters in our form's counter?
TechnologyOur short greeting form promises “40 characters”. In the JavaScript counter I used the text's length property. A family emoji looks like one symbol in the box, but the counter jumps by several, which makes the limit hard to explain.
MDN says JavaScript string length counts UTF-16 code units. It distinguishes that from counting grapheme clusters, the units closer to what a reader may perceive as characters. MDN's string-length reference
The limit is meant to keep the printed greeting compact, not to meet a storage allowance. Should we change how we count, change the wording of the limit, or use a different rule? I want the form's promise to match what it actually enforces.