I have successfully used that to get correct encoding for console output in my local language. It is weird that yours Win10 should behave differently, especially for a common Windows exe. You could try open command prompt and enter the command 'chcp' to get the codepage. For me that returns code page 850 which is also what OEMCodePage returns for me. Other than that a custom console program may use almost any encoding, and System.Text.Encoding class has a few common encodings that you could give a try.