今天被这两个方法折腾了一下:
不过解决了还好;
如下URLDecoder.decode(cookie.getValue());
Cookie.builder(key, URLEncoder.encode(content))
这么两行代码:
那么接下来修改的话需要try{}cach(){}
如下:都加上UTF-8 再捕获异常就可以了
URLDecoder.decode(cookie.getValue(),"UTF-8");
Cookie.builder(key, URLEncoder.encode(content,"utf-8"))
不过解决了还好;
如下URLDecoder.decode(cookie.getValue());
Cookie.builder(key, URLEncoder.encode(content))
这么两行代码:
那么接下来修改的话需要try{}cach(){}
如下:都加上UTF-8 再捕获异常就可以了
URLDecoder.decode(cookie.getValue(),"UTF-8");
Cookie.builder(key, URLEncoder.encode(content,"utf-8"))