使用iconv转换文件编码格式

for file in *.cpp; do iconv --from-code=gb2312 --to-code=utf-8 $file > $file.utf8; mv $file.utf8 $file; done
for file in *.h; do iconv --from-code=gb2312 --to-code=utf-8 $file > $file.utf8; mv $file.utf8 $file; done

posted @ 2023-06-21 13:52  阿C  阅读(123)  评论(0编辑  收藏  举报