Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on UCS vs. UTF-8 as Internal String Encoding. Parent comment
The same is true of UTF-8 because it is self-synchronizing. You only have to check that the byte at the given offset is either 0xxxxxxx or 11xxxxxx.
The same is true of UTF-8 because it is self-synchronizing. You only have to check that the byte at the given offset is either 0xxxxxxx or 11xxxxxx.