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.
You could accomplish that by adding String.prototype.normalize to the mix.
-
-
`normalize` doesn't seem to remove the accents. I'm looking for a way to consistently remove accents.
-
Ah, if I use `NFD` it works
End of conversation
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.