Here you can find the source of decode(String content)
public static String decode(String content)
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { public static String decode(String content) { try {/*from w ww. j a v a 2 s.c om*/ String decodeContent = URLDecoder.decode(content, "utf-8"); return decodeContent; } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return content; } }