some new unicode modules https://github.com/substack/utf8-bytes … https://github.com/substack/utf8-length …
-
-
@mathias@jedschmidt but nobody published that snippet to npm with a good name -
@substack Well there is http://mths.be/utf8js (`utf8` on npm) +@jedschmidt
End of conversation
New conversation -
-
-
@mathias@jedschmidt@substack unescape(encodeURIComponent(s)).length -
@4esn0k Of course, good old http://ecmanaut.blogspot.com/2006/07/encoding-decoding-utf8-in-javascript.html …! Could you comment here: https://gist.github.com/mathiasbynens/1010324 … +@jedschmidt@substack - 3 more replies
New conversation -
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.