A program to detect mojibake that results from a UTF-8-encoded file being misinterpreted as code page 1252
https://devblogs.microsoft.com/oldnewthing/20190701-00/?p=102636 [devblogs.microsoft.com]
2019-07-02 16:29
It is not uncommon to see UTF-8-encoded data misinterpreted as code page 1252, due to file content lacking an explicit encoding declaration, such as you might encounter with the Resource Compiler. So let’s write a program to detect that specific kind of mojibake.