Just in case you need it, I implemented fastest found JS helper that counts UTF-8 codepoints in Buffer. https://gist.github.com/RReverser/f5cb2152d2655b9e9d09 … cc @mathias
-
-
Replying to @RReverser
@RReverser I’m confused — what does this actually do? If the goal is to count UTF-8 bytes, this seems broken.1 reply 0 retweets 0 likes
Replying to @RReverser
@RReverser It doesn’t count code points either; try a buffer containing an astral symbol, such as `new Buffer('𝌆', 'utf8')`.
3:42 AM - 26 Oct 2015
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.