貌似是Tomcat7对中文支持不那么好了,两个步骤即可解决,以name举例
设置Cookie时,name=URLEncoder.encode(name,"UTF-8");
读取Cookie时,name=URLDecoder.decode(name,"UTF-8");
本文共 208 字,大约阅读时间需要 1 分钟。
貌似是Tomcat7对中文支持不那么好了,两个步骤即可解决,以name举例
设置Cookie时,name=URLEncoder.encode(name,"UTF-8");
读取Cookie时,name=URLDecoder.decode(name,"UTF-8");
转载于:https://www.cnblogs.com/stansonwilliam/archive/2012/10/31/2748719.html