常见异常--被解码的 URI 不是合法的编码

进行URL编解码的时候,一定不要忘了编码集参数“utf-8”,否则后果很严重

Cookie remnameC = new Cookie(“remname”, URLEncoder.encode(user.getUsername(),”utf-8”));

posted @ 2016-03-08 21:36  时光.漫步  阅读(1045)  评论(0编辑  收藏  举报