-----linux gbk 轉 UTF-8--------html
iconv 用法linux
iconv -f "gbk" -t "utf-8" < infile > outfile服務器
或者post
piconv -f "gbk" -t "utf-8" < infile > outfile編碼
iconv -f utf-8 -t GBK 123456.txturl
對傳文件的服務器編碼不同spa
將腳本里加上轉碼xml
----------utf-8轉成GB18030----------htm
for file_error in `cat $TMP_FILE_NAME_ERROR.list`
do
echo $file_error
MOVE_FILE $file_error
find ./ -type f -name $file_error | xargs iconv -f UTF-8 -t GB18030 > Temp.txt
mv Temp.txt $file_error
perl -pi -e 's/\cM//gs' $file_error
INSERT_BILL_FILE_INFO TERMSUBSIDYCHKDIRDESfile_error $SERVICE_ID_ERROR
doneblog