3 ms·
No, UTF-8 is self synchronizing... The first byte of a code point is clearly the first byte of a code point, so it's possible to tell that there was a truncated
by toast0 5y ago
No, UTF-8 is self synchronizing... The first byte of a code point is clearly the first byte of a code point, so it's possible to tell that there was a truncated code point, as long as the next one starts correctly (if you lost two bytes in a row, you might get a mashed up code point, but that's a different loss scenario)