zhaochunqi
12/11/2017 - 8:16 AM

change_gbk2312_to_utf8.sh

    files=`find . -name '*.java' | xargs enca -L zh | grep GB2312 | cut -d: -f1`
    for f in $files; do
        iconv -f GBK -t UTF-8 $f > $f.utf && mv -f $f.utf $f && echo "$f done"
    done