3

windows下压缩包在linux解压乱码的解决办法

 1 year ago
source link: https://blogread.cn/it/article/2175?f=hot1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

    我的系统是ubuntu 10.04 ,编码是zh_CN.UTF-8。

    我从网络上下载的绝大部分zip包,解压后,连带目录和文件都是乱码。在终端尝试更换LANG,LANGUAGE等环境变量,还是不能直接解决问题。

    而且用unzip解压后,无论你怎么设置convmv命令的编码参数,均不能解决问题。后通过7z工具算是暂时解决了这个问题。

    首先用apt安装7z工具包。

    然后用下面的两条指令:

    1) LANG=C 7z x xxx.zip

    2) convmv -f cp936 -t utf8 -r -notest *

建议继续学习:

QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK