一个能在各种文件编码中转换的工具,在cygwin下的使用格式: iconv -f UTF-8 -t GBK oldfilename > newfilename 用iconv -l可以看到支持的编码格式,输出内容中同一行应该是同一种格式,名字可以任取一个。