public static void main(String[] args) throws UnsupportedEncodingException {
String msg = "μ???ì??μ·±!???ì2é?úμ?outlook, foxmail?ò?????ü×??ˉ?ì2aóê??μ?1¤??(àyè?í?ò×popoμèá?ìì1¤??),???ì2aμ?ê±??????μ÷′óò?D?£?àyè?5·??ó?à2aò?′?.";
System.out.println(msg); // 输出转换后的字符串
String msg0 = new String(msg.getBytes("ISO-8859-1"), "windows-949");
System.out.println(msg0); // 输出转换后的字符串
String msg3 = new String(msg0.getBytes("windows-949"), "GBK");
System.out.println(msg3);
}
直接转化失败,通过notepad++ 发现μ???为?西欧语系?iso-8859-1
μ???ì??μ·±!???ì2é?úμ?outlook, foxmail?ò?????ü×??ˉ?ì2aóê??μ?1¤??(àyè?í?ò×popoμèá?ìì1¤??),???ì2aμ?ê±??????μ÷′óò?D?£?àyè?5·??ó?à2aò?′?.
测试多次转化为UTF-8失败,尝试通过其他中间语言进行过度,使用韩文时发现字符基本打印正常无乱码
??格??!?????outlook, foxmail?諒?劍菱???錟芎???(??貢弄popo??莖??),????珂?????寧硅,??5?爐??寧?.
尝试通过韩文转为中文,转为UTF-8乱码,调整为GBK时显示正常
登录太频繁!请检查您的outlook, foxmail或者其它自动检测邮箱的工具(例如网易popo等聊天工具),将检测的时间间隔调大一些,例如5分钟监测一次.