package activity.cloud.utils; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class URLEncodeing { public static String toURLDecoder(String str) { if (str != null && !str.equals("")) { try { return URLDecoder.decode(new String(str.getBytes(), "UTF-8"), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } return ""; } }