我在服务端有这么一句话:ViewData["UserLocation"] = Server.HtmlDecode(Request.Cookies["wapCity"].Value);
Request.Cookies["wapCity"].Value的值是“北京”,
在本地运行的时候,ViewData["UserLocation"]输送到客户端是正常的现实“北京”,
、但发布后上线后,ViewData["UserLocation"]输送到客户端却变为“鍖椾含”。
我知道是编码错误,是不是后端写ViewData["UserLocation"] = Server.HtmlEncode(Request.Cookies["wapCity"].Value);前端写
ViewData["UserLocation"] = Server.HtmlDecode(Request.Cookies["wapCity"].Value);
还有为什么本地是正常的,而上线后却异常!(好像是16进制)