Here you can find the source of decode(String s)
public static String decode(String s)
//package com.java2s; import java.io.*; import java.net.URLDecoder; public class Main { public static String decode(String s) { if (s == null) { return ""; }//from www . ja va 2 s.c o m try { return URLDecoder.decode(s, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e.getMessage(), e); } } }