摘要:
感觉编码有三个部分组成:生成字节数组的方法。字节数组本身。解析字节数组的方法。一般情况下乱码的产生就是第三部分出错了,也就是用错误的方式解析字节数组。比如下面的例子: public static void test_4(){ try{ String str1 = "我们"; String str2 = new String(str1.getBytes("UTF-8"), "GBK"); String str3 = new String(str2.getBytes("GB... 阅读全文
posted @ 2012-02-23 10:24
GG大婶
阅读(1130)
评论(0)
推荐(0)

浙公网安备 33010602011771号