Daniel Lemire personal blog

Validating UTF-8 strings using as little as 0.7 cycles per byte

Most strings found on the Internet are encoded using a particular unicode format called UTF-8. However, not all strings of bytes are valid UTF-8. The rules as to what constitute a valid UTF-8 string are somewhat arcane. Yet it seems important to quickly validate these strings before you consume them. In a previous…
Points
139
HN comments
69
Submissions
1
Cited by
3 commenters

Systems & PerformanceSoftware Engineering2018

On Hacker News

SubmittedTitle on HNPointsComments
May 16, 2018Validating UTF-8 strings using as little as 0.7 cycles per byte by ingve13969

Cited in comments

Linked from 3 Hacker News comments by 3 different people, from Aug 2019 to May 2020.

Most recent:

Search every comment that links here →

More from Daniel Lemire

All 87 posts →

Related posts from the same era