ubuntu下中文文件乱码

从windows上传上去的文件名如果是中文会有乱码的情况出现,主要是windows的gbk文件名到linux下的utf8不识别

安装convmv
sudo apt-get install convmv


转码
convmv -f GBK -t UTF-8 --notest 文件路径


整个目录下所有文件转码
convmv -f GBK -t UTF-8 --notest -r *

猜你喜欢

转载自chinacheng.iteye.com/blog/2260793
今日推荐