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

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



lenny 的 unzip --help 无 O 选项说明, 参照 unzip -O ... 方式也得不到正确的中文名。

-O 后跟 cp936、gb2312、gbk、utf8 都试过无效,解出来的文件明依然是乱码
用 convmv -r --notest -t utf8 -f ....... 对解出来的文件名作转换也一样是乱码


oracle@debian3:~$ unzip --help
UnZip 5.52 of 28 February 2005, by Debian. Original by Info-ZIP.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
  Default action is to extract files in list, except those in xlist, to exdir;
  file[.zip] may be a wildcard.  -Z => ZipInfo mode ("unzip -Z" for usage).

  -p  extract files to pipe, no messages     -l  list files (short format)
  -f  freshen existing files, create none    -t  test compressed archive data
  -u  update files, create if necessary      -z  display archive comment
  -x  exclude files that follow (in xlist)   -d  extract files into exdir

modifiers:                                   -q  quiet mode (-qq => quieter)
  -n  never overwrite existing files         -a  auto-convert any text files
  -o  overwrite files WITHOUT prompting      -aa treat ALL files as text
  -j  junk paths (do not make directories)   -v  be verbose/print version info
  -C  match filenames case-insensitively     -L  make (some) names lowercase
  -X  restore UID/GID info                   -V  retain VMS version numbers
  -K  keep setuid/setgid/tacky permissions   -M  pipe through "more" pager
Examples (see unzip.txt for more info):
  unzip data1 -x joe   => extract all files except joe from zipfile data1.zip
  unzip -p foo | more  => send contents of foo.zip via pipe into program more
  unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer


On Fri, 2010-05-14 at 10:51 +0800, Shell Xu wrote:
这不奇怪,zip内不使用utf-8编码格式。所以通常我推荐rar或者tar.gz。不过前者是开源程序,后者针对某些文件在windows下解压有时也不正常。
要暂时的解决这个问题,可以参考这个文档。
http://hi.baidu.com/hi521/blog/item/6fb71817b32a94084a90a799.html
下次碰到这种问题,请先google之。今天心情不错,心情糟糕你可能就会得到一个RTFM。

在 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: