2年前查询编码与字符集相关的资料时看到了[肖国栋](https://xiaogd.net)大佬写的这一系列文章,今天突然想起来了,于是又翻了出来,在这里分享一下,顺便提醒自己有时间再重温一下。 1. [字符集与编码(一)——charset vs encoding](https://xiaogd.net/%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8e%e7%bc%96%e7%a0%81%ef%bc%88%e4%b8%80%ef%bc%89-charset-vs-encoding/) 2. [字符集与编码(二)——编号 vs 编码](https://xiaogd.net/%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8e%e7%bc%96%e7%a0%81%ef%bc%88%e4%ba%8c%ef%bc%89-%e7%bc%96%e5%8f%b7vs%e7%bc%96%e7%a0%81/) 3. [字符集与编码(三)——定长与变长](https://xiaogd.net/%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8e%e7%bc%96%e7%a0%81%ef%bc%88%e4%b8%89%ef%bc%89-%e5%ae%9a%e9%95%bf%e4%b8%8e%e5%8f%98%e9%95%bf/) 4. [字符集与编码(四)——Unicode](https://xiaogd.net/%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8e%e7%bc%96%e7%a0%81%ef%bc%88%e5%9b%9b%ef%bc%89-unicode/) 5. [字符集与编码(五)——代码单元及 length 方法](https://xiaogd.net/%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8e%e7%bc%96%e7%a0%81%ef%bc%88%e4%ba%94%ef%bc%89-%e4%bb%a3%e7%a0%81%e5%8d%95%e5%85%83%e5%8f%8a-length-%e6%96%b9%e6%b3%95/) 6. [字符集与编码(六)——getBytes 方法及乱码初步](https://xiaogd.net/%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8e%e7%bc%96%e7%a0%81%ef%bc%88%e5%85%ad%ef%bc%89-getbytes-%e6%96%b9%e6%b3%95%e5%8f%8a%e4%b9%b1%e7%a0%81%e5%88%9d%e6%ad%a5/) 7. [字符集与编码(七)——BOM](https://xiaogd.net/%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8e%e7%bc%96%e7%a0%81%ef%bc%88%e4%b8%83%ef%bc%89-bom/) 8. [字符集与编码(八)——ASCII 和 ISO-8859-1](https://xiaogd.net/%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8e%e7%bc%96%e7%a0%81%ef%bc%88%e5%85%ab%ef%bc%89-ascii%e5%92%8ciso-8859-1/) 9. [字符集与编码(九)——GB2312,GBK,GB18030](https://xiaogd.net/%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8e%e7%bc%96%e7%a0%81%ef%bc%88%e4%b9%9d%ef%bc%89-gb2312%ef%bc%8cgbk%ef%bc%8cgb18030/)