随笔分类 -  asp.net

asp.net相关的文章
摘要:delegate void mydelete();DispatcherTimer dTimer = new System.Windows.Threading.DispatcherTimer(); dTimer.Tick += new EventHandler(dTimer_Tick); dTimer... 阅读全文
posted @ 2015-04-29 10:33 赤月奇 阅读(216) 评论(0) 推荐(0)
摘要:说明:从这点我们发现:所有的参数输入,都调用了一次:HttpUtility.UrlDecode(str2, encoding);结论出来了:当客户端js对中文以utf-8编码提交到服务端时,用Request.QueryString接收时,会先以globalization配置的gb2312去解码一次,于是,产生了乱码。所有的起因为:1:js编码方式为urt-82:服务端又配置了默认为gb23123:Request.QueryString默认又会调用HttpUtility.UrlDecode用系统配置编码去解码接收参数。 文章补充:1:系统取默认编码的顺序为:http请求头->globali 阅读全文
posted @ 2014-01-15 15:26 赤月奇 阅读(1599) 评论(1) 推荐(0)