程序是一般處理程序輸出
var httpcontext = context.Response;
httpcontext.Buffer = true;
httpcontext.ExpiresAbsolute = DateTime.Now.AddSeconds(0);
httpcontext.AddHeader("Pragma", "No-Cache");
httpcontext.Expires = 0;
public void ResponseClient(string result, HttpContext context)
{
context.Response.Write("{ \"result\":\"" + result + "\"}");
}
?
也設置了
Response.ContentType Response.Charset?
都是utf-8 網上有的說在配置文件里面加globalization ?也無效
最后對輸出的字符串這樣處理
?HttpUtility.UrlEncode(str,System.Text.Encoding.GetEncoding("utf-8"));
還是亂碼
在頁面設置
都沒有用!
瀏覽器圖片:
?
?
求解決
- 4 回答
- 0 關注
- 743 瀏覽
添加回答
舉報
0/150
提交
取消