▲ | osmsucks 5 days ago | |||||||||||||||||||||||||||||||||||||
JavaScript is: https://mathiasbynens.be/notes/javascript-encoding | ||||||||||||||||||||||||||||||||||||||
▲ | demurgos 5 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
> The ECMAScript/JavaScript language itself, however, exposes characters according to UCS-2, not UTF-16. The native JS semantics are UCS-2. Saying that it's UTF-16 is misleading and confuses charset, encoding and browser APIs. Ladybird is probably implementing support properly but it's annoying that they keep spreading the confusion in their article. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
▲ | grishka 5 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
And most mainstream GUI toolkits are, as well. It can be said that UTF-16 is the de-facto standard in-memory representation of unicode strings, even though some runtimes (Rust) prefer UTF-8. | ||||||||||||||||||||||||||||||||||||||
|