有很多文章指出可以使用
str = new String(str.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
这种方式很容易转出???
正确的姿势是
import java.net.URLDecoder;
str = URLDecoder.decode(str,"utf-8");
有很多文章指出可以使用
str = new String(str.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
这种方式很容易转出???
正确的姿势是
import java.net.URLDecoder;
str = URLDecoder.decode(str,"utf-8");