URL解析%报错:URLDecoder.illegal hex characters in escapse (%) pattern - For input string:“ 依“

将原文中的% 替换为 %25 即可

如:String s = "123% 四";

s = s.replaceAll("%", "%25");

就好了

猜你喜欢

转载自blog.csdn.net/dd2016124/article/details/111303317
今日推荐