centos 編碼問題 編碼轉換 cd到對應目錄 執行 中文解壓

**unzip -O CP936 xxx.zip (用GBK, GB18030也能夠)**

find -type f -name "*.html" -exec iconv -f gb2312 -t utf-8 {} -o {} \; css

便可 js css同理html

convmv 能夠從http://j3e.de/linux/convmv 下載,

  wget http://j3e.de/linux/convmv/convmv-1.14.tar.gz

  tar -zxvf convmv-1.14.tar.gz

  cd convmv-1.14

  make clean;

  make install;

  如:

  ./convmv -f GB2312 -t UTF-8 -r --nosmart --notest userfiles/*.*

  以上表示 userfiles下的全部文件的文件名由GB2312轉換爲UTF-8
相關文章
相關標籤/搜索