Java tutorial
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.nio.charset.Charset; public class Main { public static final Charset charset = Charset.forName("utf-8"); public static final String urlDecode(String encode) { try { return URLDecoder.decode(encode, charset.toString()); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return encode; } }