cookie中存中文报错,解决办法

包:java.net.*



使用UIRLEncoder进行编码.比如:
String str = URLEncoder.encode("编码字符串","utf8");
使用URLDecoder进行解码.比如:
String str = URLDecoder.decode("解码字符串","utf8");

猜你喜欢

转载自www.cnblogs.com/xxlitblog/p/9234407.html