public static String decodeQuery(String url){
  try {
    return URLDecoder.decode(url,"UTF-8");
  }
 catch (  UnsupportedEncodingException ignore) {
  }
  return url;
}

public static String decodeQuery ( String url ) { try { return URLDecoder . decode ( url , "UTF-8" ) ; } catch ( UnsupportedEncodingException ignore ) { } return url ; }
this method decodes an url with encoded query string
