How can i change the default encoding for the Net Core console application?
I'm using a legacy library written in .Net framework that needs to read files in windows-1251
code page but won't allow me to specify it as a parameter. Only option available is read from file.
The only way i see to make it work, without changing the file codepage, is to change default code page during that operation.
I enabled codepage provider using (From package System.Text.Encoding.CodePages):
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Any clues?