Here you can find the source of decode(String url)
public static String decode(String url)
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import org.apache.http.protocol.HTTP; public class Main { public static String decode(String url) { String str = new String(); try {//from www .j av a2 s . com str = URLDecoder.decode(url, HTTP.UTF_8); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return str; } }