Encoding.RegisterProvider(CodePagesEncodingProvider.Instance) does not add extra encoding providers
I am adding this as the answer regarding Gabriel's suggestion that it might help other people in the future too.
I cleaned the Nuget cache, repaired my ".NET Core SDK 2.0.2" installation, did a "Solution and Project Cleanup" and rebuilt my project, and the Encoding.RegisterProvider(CodePagesEncodingProvider.Instance)
code started to work fine.
Now I can access the extra code pages using the Encoding.GetEncoding()
method, however I still get the same list of encodings from Encoding.GetEncodings()
method after adding the extra encodings.
From my perspective the Encoding.GetEncodings()
method should return all the encodings available after more of them have been added.