some new unicode modules https://github.com/substack/utf8-bytes … https://github.com/substack/utf8-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
-
-
@mathias@jedschmidt@substack but "encodeURIComponent" throws error in case of invalid code point... -
@4esn0k Yeah, it errors for lone surrogates. So does@substack’s current `utf8-length` but some argue that’s a feature +@jedschmidt - 1 more reply
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.