URL转码问题:URLDecoder.decode(str)过时,解决:decode(String s, String enc) throws UnsupportedEncodingException
过时的写法:
String result = URLDecoder.decode(src);
解决:
try {
String result = URLDecoder.decode(src, "utf-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}