编码转换

iconv file1.txt -f gbk -t utf-8 -c -o file2.txt

dos2unix

sed -i 's/\r\n/\n/g' file.txt