How Can I Best Guess the Encoding when the BOM (Byte Order Mark) is Missing?

前端 未结 4 1165
野趣味
野趣味 2020-11-30 00:15

My program has to read files that use various encodings. They may be ANSI, UTF-8 or UTF-16 (big or little endian).

When the BOM (Byte Order Mark) is there, I have n

4条回答
提交回复
热议问题