4 ms·
> Text shouldn't have anything about its encoding inside of it. That information should we had from somewhere else, so that as Rob Pike pointed out, state is no
by Kelteseth 4y ago
> Text shouldn't have anything about its encoding inside of it. That information should we had from somewhere else, so that as Rob Pike pointed out, state is not introduced to the byte stream. Let's all do our part to render byte order marks unneeded and unused.
We deal with like external text files from third party software. There we can simply skip most of the encoding detection if we find a BOM. Note: I'm not an expert in this field and only a beginner (5 years) c++ programmer.