2
19
2012
6

unzip 6.10b测试版,解决ZIP乱码问题

原来unzip有个-O参数,可以设定编码的。到了6.0版本不知为何移除了。后来ZIP乱码问题就一直困扰着群众。

今天翻了翻官网,发现测试版本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.  

虽然这个版本2010年底就发布了,但能搜索到的信息几乎没有,真是奇怪。用官方新版本解决乱码不是很方便么……

于是写了个PKGBUILD,扔AUR了: unzip-beta

使用示例:

unzip 我是一个ZIP.zip -Ogbk

Category: 计算机 | Tags: arch ZIP 软件 linux | Read Count: 13942
Avatar_small
alswl 说:
2012年7月24日 20:59

官方版本是 6.0.6,还是12年2月份更新的。
一直用一个 python 脚本来解 zip,试试你的 aur 包。

Avatar_small
Crow 说:
2012年12月20日 22:31

多谢!!
N9上编译成功...filebox打开zip文件终于不乱码了!!

Avatar_small
orvice 说:
2013年2月20日 00:08

beta还没有转正么,官方源安装的还不能带参数。。

Avatar_small
s2marine 说:
2015年10月04日 16:42

谷歌下没想到找到来源了
换aur4后失效啦~求补上

Avatar_small
LastAvengers 说:
2016年1月19日 15:10

@s2marine: use unzip-iconv

Avatar_small
seo service london 说:
2024年1月16日 20:43

Nice post. I discover something more difficult on diverse blogs everyday. It will always be stimulating to study content from other writers and employ a specific thing from their site


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

| Theme: Aeros 2.0 by TheBuckmaker.com