摘要: 最近在做的项目发布后出现了乱码的问题,既然出现了乱码很大的可能性是跟编码有关系,所以首先的解决方案就是重新对cookie进行编码,在写入的cookie的时候编码,在读取的时候解码在写入cookie的时候重新设置编码方式:HttpCookie cookname= new HttpCookie("name"); cookname.Value = HttpUtility.UrlEncode(textbox1.Value.ToString(), System.Text.Encoding.GetEncoding("GB2312"));Response.Append 阅读全文
posted @ 2013-09-20 09:07 .Justme 阅读(180) 评论(0) 推荐(0) 编辑