我正在使用此方法进行URL解码。它大部分工作正常,但有些网址无效。
例如:
Luke Coughey made comment on Kane Waselenchuk (def) Rocky Carson I I I: Wow%21%20%20This%20I%27d%20going%20too%20be%20another%20season%20of%20dominance%2C%20if%%20Kane%20keeps%20playing%20like%20that%....
这个字符串没有解码我不知道为什么。以下是我的代码:
public static String getDecodedmessage(String data) {
try {
return URLDecoder.decode(data, "UTF-8");
} catch (Exception e) {
e.printStackTrace();
}