Java tutorial
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { public static String decode(String msg) throws UnsupportedEncodingException { return URLDecoder.decode(msg, "UTF-8"); } }