這一段出現了亂碼,那么不妨用窮舉法猜測一下它的實際編碼格式。
System.out.println(new String(testString.getBytes("ISO-8859-1"),"gb2312"));
System.out.println(new String(testString.getBytes("UTF8"),"gb2312"));
System.out.println(new String(testString.getBytes("GB2312"),"gb2312"));
System.out.println(new String(testString.getBytes("GBK"),"gb2312"));
System.out.println(new String(testString.getBytes("BIG5"),"gb2312"));
大盤預測
國富論
posted on 2008-10-16 09:57
華夢行 閱讀(265)
評論(0) 編輯 收藏 所屬分類:
JDK