Here you can find the source of decode(String input)
public static String decode(String input)
//package com.java2s; //License from project: Open Source License import java.io.*; import java.net.*; public class Main { private static String systemEncoding = System.getProperty("file.encoding"); public static String decode(String input) { try {// ww w.j a v a 2 s .c o m return URLDecoder.decode(input, systemEncoding); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } } }