UTF-8 in JavaScript: http://monsur.hossa.in/2012/07/20/utf-8-in-javascript.html …
btoa(unescape(encodeURIComponent(s))
This great idea will improve EscApe size a lot.
cc/@mathias
@MaximeEuziere Yeah but it means you drop support for lone surrogates (which is not necessarily a bad thing)
-
-
@mathias oh yeah, well spotted, thanks! But... finally... are UTF-16 strings containing lone surrogates valid ?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.