NetBlog主题

解决 .net Core 3.1中使用GB2312编码异常
.Net Core

解决 .net Core 3.1中使用GB2312编码异常

6584

在.net core使用GB2312时抛出以下异常 System.ArgumentException:“'gb2312' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. 解决方法 在NuGet 添加“System.Text.Enco…