-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding.GetEncoding("GBK") 在 .net core中报错 #14
Comments
同样的问题,百度的文档示例在netcore上跑不通 Unhandled Exception: System.ArgumentException: 'GBK' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. |
恩,虽然在调用sdk的项目中Encoding.RegisterProvider一下也能解决,但是感觉不太友好。 |
今天用dotnet core 也发现这个问题了.core里面没有gbk编码,需要单独引用,可以参考下面 1,nuget 安装 System.Text.Encoding.CodePages |
netstandard2.0版本的sdk中有 Encoding.GetEncoding("GBK")的代码,但.net core项目使用的时候会报错。是否考虑引入System.Text.Encoding.CodePages?
The text was updated successfully, but these errors were encountered: