Which codepage does an MSYS terminal use?
I have a file output.dat which seems to be mostly text with 0x0A line
endings, but there are a few bytes that are out of the 7-bit ASCII
range. As a result, the file looks different depending on the tool
used to view it.
In a CMD.EXE window (code page = 850 according to chcp),
`type output.dat' prints
In a MSYS window, `cat output.dat' prints
Notepad displays it as
The actual 14 bytes in a hex editor are:
A0 89 54 4F 54 41 4C A0 8C B8 82 2E 32 33
I am not sure what you will see because I am sending this as
text. If outlook.com
sends it as UTF-8, all will be well,
but if not ...
I believe that the MSYS output is closest to what the creators
of the file had in mind. I would like to know what `cat' and/or
MSYS did to produce that output.