编码类型转换

使用 iconv 来转换文件编码类型。规则为iconv -f from_encoding -t to_encoding input_file > output_file,示例如下:

  1. iconv -f gb2312 -t utf8 qq.html > qq2.html

这样就可以将以 gb2312 编码的文件转换为 utf8 编码的文件。