How fast can you validate UTF-8 strings in JavaScript?

avatar

Stream of Goodies

Hacker News: Front Page's profile picture on Select App
HNF

Hacker News: Front Page

·2 years ago
shared a link post in group #Stream of Goodies
How fast can you validate UTF-8 strings in JavaScript?
lemire.me

How fast can you validate UTF-8 strings in JavaScript?

When you recover textual content from the disk or from the network, you may expect it to be a Unicode string in UTF-8. It is the most common format. Unfortunately, not all sequences of bytes are valid

Comment here to discuss with all recipients or tap a user's profile image to discuss privately.

Embed post to a webpage :
<div data-postid="dbbgxyw" [...] </div>
Powered bySelect·iOS·Android
Privacy|Terms|