@mathias Is there a way to tell from the results of character.charCodeAt(0) whether it was multi-byte? (and thus, the result is wrong)
Replying to @LeaVerou
@LeaVerou You mean, if it was the start of a surrogate pair? Yes, but you need to check the next character too. See http://mths.be/codepointat .
6:05 PM - 28 Jun 2014
from Burgwallen-Nieuwe Zijde, Amsterdam
0 replies
0 retweets
4 likes
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.