报错:URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "^Y"
原因:是因为URLDecoder解码中的源码里,如果编码字符串中含有%号和加号,就会自动抛出该异常
解决方法:先进行替换,然后再解码
pord = pord .replaceAll("%(?![0-9a-fA-F]{2})", "%25");
pord = pord .replaceAll("\\+", "%2B");
pord = URLDecoder.decode(pord , "UTF-8");