Unicode normalization problem

Mathias Bynens mathias at qiwi.be
Wed Apr 1 20:18:58 UTC 2015


On Wed, Apr 1, 2015 at 9:17 PM, Alexander Guinness <monolithed at gmail.com> wrote:
> My reasoning is based on the following example:
>
> ```js
> var text = '𝐀';
>
> text.length; // 2
>
> Array.from(text).length // 1
> ```

What you’re seeing there is not normalization, but rather the string
iterator that automatically accounts for surrogate pairs (treating
them as a single unit).


More information about the es-discuss mailing list