您的位置:首页 > 运维架构 > Linux

Linux下unzip解压windows压缩的zip件,中文名乱码问题

2015-07-19 12:58 501 查看
参考 http://www.111cn.net/sys/linux/72590.htm
方法1:

unzip -O CP936 xxx.zip (GBK, GB18030)

方法2:

jar xvf file.name

-------------------------------------------------------------

参考:
http://www.myhack58.com/Article/48/66/2014/44903.htm http://forum.ubuntu.org.cn/viewtopic.php?t=261811
unzip无 -O 参数:

(1)
7za x xxx.zip

(2)
convmv -r -f utf8 -t iso88591 xxx --notest --nosmart && convmv -r -f gbk -t utf8 xxx --notest --nosmart

convmv:命令

-r:包括对子目录进行操作

-f utf8:从utf8编码

-t iso88591:变成iso88591编码

*:所有文件

--notest:不试,直接改名

--nosmart:忽略已经是utf8编码的文件名

yum -y install p7zip

yum install convmv

--------------------------------------------

export LANG=zh_CN.GBK
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: