标签:urldecoder url编码
在使用URLDecoder对字符串进行解码的时候 报以下异常信息:
Exception in thread "main" java.lang.IllegalArgumentException: URLDecoder: Incomplete trailing escape (%) pattern
解决方法如下 example:
String str = "hello该字符串中包含%"; System.out.println(URLDecoder.decode(str.replaceAll("%", "%25"), "UTF-8"));
URLDecoder: Incomplete trailing escape (%) pattern,布布扣,bubuko.com
URLDecoder: Incomplete trailing escape (%) pattern
标签:urldecoder url编码
原文地址:http://blog.csdn.net/itmyhome1990/article/details/25031513