Here you can find the source of decode(String s)
public static String decode(String s)
//package com.java2s; //License from project: Apache License import java.net.URLDecoder; public class Main { public static String decode(String s) { String ret = s;// w ww . ja va2 s . c o m try { ret = URLDecoder.decode(s.trim(), "UTF-8"); } catch (Exception localException) { } return ret; } }