NET2 写入COOKIES 汉字乱码解决办法

解码:

HttpUtility.UrlDecode(Request.Cookies["flyxnet"].Value

 

写入时编码

Response.Cookies["flyxnet"].Value = HttpUtility.UrlEncodeUnicode(voteMsg);

解码:

HttpUtility.UrlDecode(Request.Cookies["flyxnet"].Value

 

写入时编码

Response.Cookies["flyxnet"].Value = HttpUtility.UrlEncodeUnicode(voteMsg);

你可能感兴趣的:(Cookies)