页面传参乱码


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

主要是前一页面的编码格式与后一页面接收时不同造成的,可以在前一页面编码,后一页面解码
编码:System.Web.HttpUtility.UrlEncode(str, Encoding.GetEncoding(“GB2312”));
解码:System.Web.HttpUtility.UrlDecode(aa,System.Text.Encoding.GetEncoding(“Gb2312”));