|
我c# 用post 方法 去调用linux主机上一个web api返回 xml格式的内容
现在中文部分是乱码
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = this.txtUrl.Text,
//Encoding = Encoding.UTF8,
Encoding = null,
Method = "post",
Postdata = this.txtPostData.Text
};
HttpResult result = http.GetHtml(item);
this.txtResult.Text = result.Html;
返回内容部分如下
<uri>/mnt/data/local-disk1/D½¨Îļt¼D/</uri>
<targetname>¿′êÇ·ñÖ§3ÖÖDÎÄ</targetname>
尝试换编码,也还是这个问题
|
|