2 ms·
No, a missing BOM does not guarantee that the file doesn't contain multi-byte code points and never has.
by account42 3y ago
No, a missing BOM does not guarantee that the file doesn't contain multi-byte code points and never has.
- da_chicken 3y agoThat isn't what I said. I said that if a BOM is present, then you explicitly know that multi-byte characters are possibly present. Therefore, if it's present you know that assuming that the Nth byte is the Nth code point is unsafe. The opposite is irrelevant. There's never any way to safely determine a text file's encoding if there is no BOM present.