Hacker News new | past | comments | ask | show | jobs | submit login

> ES6 did get some new functions to correctly deal with surrogate pairs in strings. In then end, JS strings are just an sequence of 16 bit values

Which is exactly why they are not and can not be UTF-16.

> The default JavaScript behaviors is to be lenient.

The javascript behaviour is to have UCS2 "strings".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: