3 ms·
Mildly annoyed at myself for getting question 8 wrong: the true answer was what I thought that code would be doing, but the bytes didn't look like valid UTF-8.
by philh 9y ago
Mildly annoyed at myself for getting question 8 wrong: the true answer was what I thought that code would be doing, but the bytes didn't look like valid UTF-8. I had a brainfart and thought that continuation characters were always valid ASCII, so a string containing only characters >= 0x80 wouldn't be valid.
The (much saner) reality is that continuation characters are never valid ASCII.
10 I admit I got through elimination: three answers were obviously wrong, one could have gone either way.