Thanks @mathias for https://mathiasbynens.be/notes/javascript-unicode … - super useful in figuring out a @reactnative bug we were having - we were accidentally sending just half of a surrogate half and getting a native C++ exception when it was parsed in iOS.
Ooh, glad to hear something I wrote was useful to you :) Lone surrogates are the worst. What was the fix? Escaping everything?
-
-
The problem was caused by code for extracting the first letter of people's names. Before: `name[0]` after `[...name][0]`
-
It sounds like the upcoming Intl.Segmenter API is what you *really* want. Coming soon!
- 4 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.