`

linux 解压中文乱码

阅读更多
window下生成的zip包, 中文名是GBK编码

在linux下直接解压会是乱码

解决方案1 - convmv:
不压缩, 直接文件夹通过ftp上传到linux
然后
convmv -t -f gbk -t utf-8 * --nosmart --notest

把文件名编码转化成utf-8的中文, 这样上传很烦

解决方案1 - unzip:
在window下生成zip包
在linux下解压指定编码
unzip -O gbk test.zip -d test/
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics