2

I have a file that contains some characters whose "number" is greater than 127. If I use type file.txt to display the content of the file in a cmd.exe console whose code page (chcp) is set to 437, these characters are prepended with a character. I don't understand why this is and if there is a possibility to turn that off.

1 Answers1

2

In codepage 437 the glyph is assigned to hex 0xC2 / dec 194.

I did remember that some UTF8 2 byte encodings start with 0xC2 so the conclusion the text is in this encoding was obvious to me.

To display UTF8 in cmd you'll need Codepage 65001

chcp 65001  
LotPings
  • 7,391