LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1458|回复: 4

unzip windows用户传过来的zip文件得到中文文件名乱码的解决

[复制链接]
发表于 2008-3-2 03:12:21 | 显示全部楼层 |阅读模式
gentoo-china-overlay里的unzip可解决这个问题
只需要定义LINGUAS=zh
如果原来已经有LINGUAS=zh_CN,那就改成"zh zh_CN"
注意如此解开可能还是乱码,不过这时convmv就可以成功转码了,之前是不行的

       elog "If you receive a zip file from a Windows user, after unzip the file"
        elog "you find Chinese chars in the filename are garbled and you can't"
        elog "recover it no matter how you convert them, you should try add"
        elog "LINGAUS=zh to your make.conf and re-emerge unzip, and unzip it again."
        elog ""
        elog "Note: even after this, maybe you still couldn't see the right chars."
        elog "This time convmv can save you. All you need to know is which language"
        elog "version of Windows that Windows user is using and which encodin you"
        elog "are using."
        elog ""
        elog "Note again: this trick may apply to Korean and Japanese users too."
        elog "But I do not have the condition to test it -- r0bertz"
发表于 2008-3-2 12:06:07 | 显示全部楼层
感谢,这就试一试。
回复 支持 反对

使用道具 举报

发表于 2008-3-2 22:33:45 | 显示全部楼层
是强制修改了用那个ISO方式的宏?不是说有可能有兼容性问题么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-3 00:23:09 | 显示全部楼层
有问题欢迎报告
请给出具体有问题的zip包
谢谢!
回复 支持 反对

使用道具 举报

发表于 2008-12-24 11:33:19 | 显示全部楼层
Post by zhllg;1822038
gentoo-china-overlay里的unzip可解决这个问题
只需要定义LINGUAS=zh
如果原来已经有LINGUAS=zh_CN,那就改成"zh zh_CN"
注意如此解开可能还是乱码,不过这时convmv就可以成功转码了,之前是不行的

       elog "If you receive a zip file from a Windows user, after unzip the file"
        elog "you find Chinese chars in the filename are garbled and you can't"
        elog "recover it no matter how you convert them, you should try add"
        elog "LINGAUS=zh to your make.conf and re-emerge unzip, and unzip it again."
        elog ""
        elog "Note: even after this, maybe you still couldn't see the right chars."
        elog "This time convmv can save you. All you need to know is which language"
        elog "version of Windows that Windows user is using and which encodin you"
        elog "are using."
        elog ""
        elog "Note again: this trick may apply to Korean and Japanese users too."
        elog "But I do not have the condition to test it -- r0bertz"


good,我也参考了下面这个网站
http://bbs.chinaunix.net/archiver/?tid-1002730.html
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表