无刷新中文乱码解决方法

1. 在web.config里面增加
<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="zh-CN"/>
2。编码

using System.Collections.Specialized;

string s = System.Text.Encoding.UTF8.GetString(Request.BinaryRead(Request.ContentLength));
NameValueCollection form = HttpUtility.ParseQueryString(s);

string name = form[txtTitle.UniqueID];

posted on 2009-03-21 11:43  广波  阅读(1164)  评论(0编辑  收藏  举报

导航