Control character in cookie value or attribute

在cookie中添加中文导致静态页面打不开,

(1)先清除缓存

(2)使用escape()函数对中文进行编码,获取的时候在对中文进行解码unescape()。

    cookie.Set("stoName",escape(stoName),2,"/");

 

posted @ 2017-09-19 17:14  baby孔祥超  阅读(848)  评论(0编辑  收藏  举报