字符編碼
1.JAVA默認編碼為unicode,取出字符串中每個字符強制轉換為int型,調用Integer.toHexString()轉化為16進制輸出。
2.調用getBytes()返回指定編碼類型的字節數組,轉換為16進制輸出
4.System.getProperties().list(System.out)
5.System.setProperty(key, value)
6.取出每個輸入字符的字節,根據new String(buf,0,pos,"gb2312")判斷
7.通過getBytes返回原來字節數組,new String解碼,有的不可逆。
posted on 2010-12-29 10:16 杰點 閱讀(151) 評論(0) 編輯 收藏 所屬分類: JAVA