批量转换文件编码gb2312到utf3

for i in `find ./ -type f -name *` ; do iconv $i -f gb2312 -t utf8 -o ${i}.tmp && mv ${i}.tmp $i ; done

批量转换txt文件编码gbk到utf8

for i in `find ./ -type f -name “*.htm"` ; do iconv $i -f gbk -t utf8 -o ${i}.tmp && mv ${i}.tmp $i ; done