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

(1)先清除缓存

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

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

 

相关文章:

  • 2022-02-27
  • 2022-12-23
  • 2021-08-03
  • 2021-08-30
  • 2021-06-13
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2021-10-14
  • 2021-05-02
  • 2022-12-23
  • 2021-05-23
  • 2021-11-22
  • 2021-07-06
相关资源
相似解决方案