I've finally solved the issue of writing special characters (0x80...0x9F) to the Windows console with the help of David:
- The output encoding has to be set to UTF-8.
- The font used by the console should be something like Consolas.
Now I'd like to be able to read back text which contains special characters found in the 0x80-0x9F range (using the Windows 1252 encoding), such as the EURO sign (€):
string text = System.Console.ReadLine ();
returns null
whenever I type one of the special characters. I tried naively to set the InputEncoding
to UTF8:
System.Console.InputEncoding = System.Text.Encoding.UTF8;
but this does not help.