Here you can find the source of decode(String value, String charset)
public static String decode(String value, String charset)
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { public static String decode(String value) { return decode(value, "UTF-8"); }/*from w w w. ja va 2 s. c o m*/ public static String decode(String value, String charset) { String decoded = null; try { decoded = URLDecoder.decode(value, charset); } catch (UnsupportedEncodingException e) { decoded = null; } return decoded; } }