Here you can find the source of decodeURL(String value)
public static String decodeURL(String value) throws UnsupportedEncodingException
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { public static String decodeURL(String value) throws UnsupportedEncodingException { if (!isEmpty(value)) { return URLDecoder.decode(value, "UTF-8"); }/*ww w . ja va2 s. c om*/ return ""; } public static boolean isEmpty(String value) { return value == null || value.trim().equals("") || value.length() == 0; } }