在.net core 中使用了HttpClient库进行网络访问,有些网站成功,有些网络失败。报错内容如下:
The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set.
‘gbk’ is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.Parameter name: name
报错
详细错误
“gbk”字符集不被...
6年前 (2019-03-10) 1425℃ 0评论
1喜欢