摘要: 在ASP.Net中,Request.QueryString是System.Collections.Specialized.NameValueCollection类型,默认它是经过UTF-8解码的。如果你的url中的参数用的是GBK编码,将会在QueryString中得到一串乱码。怎么办?自己读原始的Query然后去解析?不用那么复杂,Framework已经帮你做好了处理的方法:string query = this.Request.Url.Query;System.Collections.Specialized.NameValueCollection queryString = System. 阅读全文
posted @ 2011-07-12 22:32 清山博客 阅读(420) 评论(0) 推荐(0)