Registering System.Text.Encoding.CodePages For EPPlus
Add System.Text.Encoding.CodePages assembly reference and register CodePagesEncodingProvider to fix encoding issues with EPPlus library.
First add a reference to System.Text.Encoding.CodePages assembly.
<ItemGroup>
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.3.0" />
</ItemGroup>
Then register the missing parts:
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
Reference
https://github.com/JanKallman/EPPlus/issues/31