3 ms·
Have a look at this stack overflow question[1]. Javascript/ECMAScript strings are supposed to be UTF-16. That said UTF-16 encodes 4 byte codepoints just as ea
by simcop2387 13y ago
Have a look at this stack overflow question[1]. Javascript/ECMAScript strings are supposed to be UTF-16. That said UTF-16 encodes 4 byte codepoints just as easily as UTF-8.
http://stackoverflow.com/questions/8715980/javascript-strings-utf-16-vs-ucs-2 http://stackoverflow.com/questions/8715980/javascript-string...
- randomfool 13y agoConcrete example of where JS has trouble: String.fromCharCode(0x010004).charCodeAt(0); => 4