摘要: 现象:ASP.NET后台写入中文COOKIE后,前台用JS读取为乱码 解决: 后台ASP.NET写入 HttpContext.Current.Request.Cookies[“cookiename”].Value = System.Web.HttpUtility.UrlEncode(strValue,Encoding.UTF8); 前台JS读取 使用decodeURIComponent解码显示 阅读全文
posted @ 2011-09-02 16:28 Byrd 阅读(591) 评论(0) 推荐(0) 编辑