@maxogden You’d want to that on a JS string rather than a buffer, since buffers are encoding-dependent. It’s this: https://mathiasbynens.be/notes/javascript-unicode#counting-symbols …
0 replies
1 retweet
2 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.