Here you can find the source of decode(String s)
public static String decode(String s)
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { /**//from www. j a v a2 s.c o m * URL decodes the specified string using the UTF-8 character encoding. */ public static String decode(String s) { try { return (s != null) ? URLDecoder.decode(s, "UTF-8") : null; } catch (UnsupportedEncodingException uee) { throw new RuntimeException("UTF-8 is unknown in this Java."); } } }