An abstract JS string element is a concrete UTF-16 code unit, encoding an abstract Unicode code point. Concretely it's likely UTF-8. Uh-huh.
-
-
Replying to @littlecalculist
@littlecalculist “Concretely it’s likely UTF-8”? I thought most ECMAScript engines used UTF-16 internally?3 replies 0 retweets 0 likes -
Replying to @mathias
@mathias@littlecalculist In general, ECMA requires strings to be sequences of 16-bit unsigned integers, not just valid UTF-16 code points.1 reply 0 retweets 0 likes
Replying to @ejpbruel
@ejpbruel @littlecalculist I know. It’s easier to think of it as UCS-2 + surrogates, IMHO. http://mathiasbynens.be/notes/javascript-encoding …
3:37 AM - 5 Aug 2012
from Dendermonde, België
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.