Java tutorial
//package com.java2s; import java.net.URLDecoder; public class Main { public static String formUrlEncode(String urlEncodeStr) { try { if (urlEncodeStr == null) return null; return URLDecoder.decode(urlEncodeStr, "UTF-8"); } catch (Exception e) { // TODO: handle exception } return null; } }