修改 synchttp.cs
131行开始 即对content进行了特别处理 进行urldecode
即可发中文了
foreach (Parameter param in listParams)
{
if (param.Name != "content")
{
string formitem = string.Format(formdataTemplate, param.Name, param.Value);
byte[] formitembytes = Encoding.UTF8.GetBytes(formitem);
memStream.Write(formitembytes, 0, formitembytes.Length);
}
else
{
string formitem = string.Format(formdataTemplate, param.Name, System.Web.HttpUtility.UrlDecode(param.Value));
byte[] formitembytes = Encoding.UTF8.GetBytes(formitem);
memStream.Write(formitembytes, 0, formitembytes.Length);
}
}
131行开始 即对content进行了特别处理 进行urldecode
即可发中文了
foreach (Parameter param in listParams)
{
if (param.Name != "content")
{
string formitem = string.Format(formdataTemplate, param.Name, param.Value);
byte[] formitembytes = Encoding.UTF8.GetBytes(formitem);
memStream.Write(formitembytes, 0, formitembytes.Length);
}
else
{
string formitem = string.Format(formdataTemplate, param.Name, System.Web.HttpUtility.UrlDecode(param.Value));
byte[] formitembytes = Encoding.UTF8.GetBytes(formitem);
memStream.Write(formitembytes, 0, formitembytes.Length);
}
}
感谢SDK作者的指导