I get the following error:
Unhandled Exception: System.IO.IOException: The parameter is incorrect.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.Console.set_OutputEncoding(Encoding value)
at (my program)
when I run the following line of code:
Console.OutputEncoding = Encoding.Unicode;
Any idea why? I do not get this error if I set the encoding to UTF8 instead.