Cookie c = new Cookie("username", java.net.URLEncoder.encode(name,"utf-8"));
java.net.URLDecoder.URLDecoder.decode(c.getValue());
cookie中存取中文字符
原文:https://www.cnblogs.com/caoleiCoding/p/9135793.html