[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: zip 文件,windows 下能正确看到中文, debian 下显示乱码



(列表不允许发带附件的邮件,所以去掉测试用的附件再发一次)

我按如下试验不成功,不知道我做错了哪里?附件是我用来做测试的 zip 文件

oracle@debian3:~$ unzip bad_unzip.zip ; convmv -r -f gb2312 -t utf8
bad_unzip ; ls -r bad_unzip ; rm -fr bad_unzip
Archive:  bad_unzip.zip
   creating: bad_unzip/
   creating: bad_unzip/�-��+-+�+
extracting: bad_unzip/�-��+-+�+�/��+� (2) �-�� +-��+-��.txt  
extracting: bad_unzip/��+� �-�� +-��+-��.txt  
extracting: bad_unzip/�-�� +-��+-��.txt  
Your Perl version has fleas #37757 #49830 
Starting a dry run without changes...
mv "bad_unzip/��+� �-�� +-��+-��.txt"   "bad_unzip/│+� �-⒖ +-Ε+-亮.txt"
mv "bad_unzip/�-�� +-��+-��.txt"        "bad_unzip/�-⒖ +-Ε+-亮.txt"
mv "bad_unzip/�-��+-+�+�/��+� (2) �-�� +-��+-��.txt"    "bad_unzip/�-��
+-+�+�/│+� (2) �-⒖ +-Ε+-亮.txt"
mv "bad_unzip/�-��+-+�+�"       "bad_unzip/�-⒖+-+�+"
No changes to your files done. Use --notest to finally rename the files.
??+? ?-?? +-??+-??.txt  ?-?? +-??+-??.txt  ?-??+-+?+?
oracle@debian3:~$ unzip bad_unzip.zip ; convmv -r -f gbk -t utf8
bad_unzip ; ls -r bad_unzip ; rm -fr bad_unzip
Archive:  bad_unzip.zip
   creating: bad_unzip/
   creating: bad_unzip/�-��+-+�+
extracting: bad_unzip/�-��+-+�+�/��+� (2) �-�� +-��+-��.txt  
extracting: bad_unzip/��+� �-�� +-��+-��.txt  
extracting: bad_unzip/�-�� +-��+-��.txt  
Your Perl version has fleas #37757 #49830 
Starting a dry run without changes...
mv "bad_unzip/��+� �-�� +-��+-��.txt"   "bad_unzip/│+� �-⒖ +-Ε+-亮.txt"
mv "bad_unzip/�-�� +-��+-��.txt"        "bad_unzip/�-⒖ +-Ε+-亮.txt"
mv "bad_unzip/�-��+-+�+�/��+� (2) �-�� +-��+-��.txt"    "bad_unzip/�-��
+-+�+�/│+� (2) �-⒖ +-Ε+-亮.txt"
mv "bad_unzip/�-��+-+�+�"       "bad_unzip/�-⒖+-+�+"
No changes to your files done. Use --notest to finally rename the files.
??+? ?-?? +-??+-??.txt  ?-?? +-??+-??.txt  ?-??+-+?+?
oracle@debian3:~$ unzip bad_unzip.zip ; convmv -r -f gb18030 -t utf8
bad_unzip ; ls -r bad_unzip ; rm -fr bad_unzip
Archive:  bad_unzip.zip
   creating: bad_unzip/
   creating: bad_unzip/�-��+-+�+
extracting: bad_unzip/�-��+-+�+�/��+� (2) �-�� +-��+-��.txt  
extracting: bad_unzip/��+� �-�� +-��+-��.txt  
extracting: bad_unzip/�-�� +-��+-��.txt  
Your Perl version has fleas #37757 #49830 
wrong/unknown "from" encoding!
??+? ?-?? +-??+-??.txt  ?-?? +-??+-??.txt  ?-??+-+?+?
oracle@debian3:~$

On Fri, 2010-05-14 at 10:52 +0800, Chen Xing wrote:
> 解压后使用convmv是可以的,不知有没有别的办法。zip文件的文件名是用本地编码存的……
> 
> 以Wiki模式创建Linux中文文档,欢迎加入
> http://www.linux-wiki.cn/
> 
> 
> 
> 在 2010年5月14日 上午10:39,wolfman.wu <r6aix@21cn.com> 写道:
> > XP, 中文专业版。
> > lenny, UTF8
> >
> >
> > lenny 下, zip 解压出来的中文名称文件名显示乱码,xp 下解压显示正常。
> >
> >
> > 怎样可以在 lenny 下正确显示中文?
> >
> >
> >
> >
> > 谢谢!
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> > Archive: 1273804749.4439.3.camel@debian3">http://lists.debian.org/1273804749.4439.3.camel@debian3
> >
> >


Reply to: