1

How to read file with ANSI encoding or another encoding with dotnet core? If I do this:

var encoding = System.Text.Encoding.GetEncoding("windows-1251");

it fails with exception:

Exception thrown: 'System.ArgumentException' in mscorlib.ni.dll Additional information: 'windows-1251' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.

Liashenko V
  • 233
  • 2
  • 11

0 Answers0