Here you can find the source of decode(String text)
public static String decode(String text) throws UnsupportedEncodingException
//package com.java2s; //License from project: LGPL import java.io.UnsupportedEncodingException; import javax.mail.internet.MimeUtility; public class Main { public static String decode(String text) throws UnsupportedEncodingException { return MimeUtility.decodeText(text); }/* w w w. j a v a 2 s .com*/ }