Windows -1252 is not supported encoding name
From a .NET Core 2.2 project, I had to install via Nuget the following two packages: (System.Text.Encoding & System.Text.Encoding.CodePages) Then you have to set it before the use of libraries: using System.Text; … { Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); … }