Here you can find the source of decodeText(String encodeText)
public static String decodeText(String encodeText) throws UnsupportedEncodingException
//package com.java2s; //License from project: Apache License import javax.mail.internet.MimeUtility; import java.io.*; public class Main { public static String decodeText(String encodeText) throws UnsupportedEncodingException { if (encodeText == null || "".equals(encodeText)) { return ""; } else {//from w w w. j ava2s .c o m return MimeUtility.decodeText(encodeText); } } }