gb2312编码提交url乱码解决

gb2312编码提交url,服务器接收时出现乱码,用System.Web.HttpUtility.UrlDecode();解码 ,还是出现乱码,困老了我好长时间,终于在google上找到了解决办法。

解决方案:

HttpUtility.ParseQueryString(Request.Url.Query, System.Text.Encoding.GetEncoding("GB2312"))["message"];--其中message就是你接收的参数.

参考资料。:

 http://www.windysky.com.cn/blog/html/140/1/1/

原文地址:https://www.cnblogs.com/rmhy/p/5922794.html