@mathias what's the edge case to encoding a 16bit unsigned number as a single character using String.fromCharCode() and s.charCodeAt(0)?
-
-
Replying to @kuvos
For characters though… It may not result in a “character” i.e. a scalar value. Could be a single surrogate, or a non-char like FFFE
2 replies 0 retweets 0 likes -
Replying to @mathias
and will the length of the string be as long as the number of nums encoded this way, no matter what their value? just confirming :)
1 reply 0 retweets 0 likes
Replying to @kuvos
As long as you stick to 16-bit unsigned integers, then you’re all good!
1:48 AM - 27 Jul 2016
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.