【发布时间】:2018-05-22 13:13:58
【问题描述】:
收到的响应如下:
'UTF8' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
Parameter name: name
The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set.
【问题讨论】:
-
您使用的是 .net 核心还是“完整”框架?
-
@AntonGorbunov - 完整的框架。我不认为这是重复的,因为这个问题必须通过 RestEase 而不是 HttpClient 来解决
标签: c# .net rest encoding utf-8