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
方法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
相关文章推荐
- Linux /etc/resolv.conf
- Linux /etc/hosts文件
- Linux键盘快捷键
- linux挂载iso镜像时报错的解决方法 mount: can't find cdrom in /etc /fstab or /etc/mtab
- centos7安装xampp php环境包
- linux 计划任务
- 每天一个Linux命令-7(mount)
- linux——samba服务器的配置
- Hadoop—在Eclipse中安装Hadoop插件及测试(Linux操作系统)--练习6
- Linux-vim-encoding
- AT PPP拨号失败,linux环境下在如何调试?
- Linux svnserver存储路径和文件的详细解释
- 嵌入式Linux module之符号导出
- Android Binder-涉及到Linux kernel相关知识点
- linux下安装python
- jsoncpp在linux下的配置
- linux下添加用户并赋予root权限
- 嵌入式Linux模块的参数传递与多文件模块Makefile
- Linux内核里的“智能指针”
- linux文件基本操作(1)