some new unicode modules https://github.com/substack/utf8-bytes … https://github.com/substack/utf8-length …
@4esn0k Yeah, it errors for lone surrogates. So does @substack’s current `utf8-length` but some argue that’s a feature +@jedschmidt
-
-
@mathias@substack@jedschmidt `new TextEncoder().encode(s)`Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.