Java tutorial
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { public static String URLDecoder(String str, String newCharset) throws UnsupportedEncodingException { if (str != null) { return URLDecoder.decode(str, newCharset); } return null; } }