您尚未登录。

#1 2012-02-19 09:31:00

cuihao
所在地: USTC, Hefei
注册时间: 2011-08-19
帖子: 1,222
个人网站

unzip-beta,支持设定字符集解决zip乱码

好久没更新的unzip(最新版本6.0是09年春发布的),在2010年底发布过一个测试版6.10b。发现有这么一段更新:

- Add -I and -O options for setting ISO and OEM character sets, respectively, used by UnZip when doing character set translations. This support is based on the unzip60-alt-iconv-utf8 patch suggested in an Info-ZIP forum thread and uses the iconv library which must be available. These options are enabled using the USE_ICONV_MAPPING compiler macro. Suggestions welcome on how to improve this limited character translation support.

就是说可以用-I和-O命令行选项指定字符集,而不是只支持utf8了。

使用示例:

unzip 我是一个ZIP.zip -Ogbk

于是写了个PKGBUID:
https://aur.archlinux.org/packages.php?ID=56788

欢迎测试。


Site: CVHC.CC   Twitter: @cuihaoleo   Org: LUG@USTC
AD:  ~欢迎参与志愿计算~

离线

#2 2012-02-19 12:33:17

majia321
会员
注册时间: 2011-08-20
帖子: 53

Re: unzip-beta,支持设定字符集解决zip乱码

smile
这里还有个应对文件名乱码的gbkunzip  https://aur.archlinux.org/packages.php?ID=54512


喵~Zz

离线

页脚