imap解析邮件中收件人姓名乱码-解码

String name = internetAddress0[0].getPersonal();

String iso8859=new String(name.getBytes("ISO-8859-1"),"utf-8"); // OK
String gb2312=new String(name.getBytes("GB2312"),"utf-8");
String gbk=new String(name.getBytes("GBK"),"utf-8");
String utfs=new String(name.getBytes("utf-8"),"utf-8");


原文地址:https://www.cnblogs.com/WangXiaoYu-/p/11858060.html