哈哈,终于好使了,非常感谢 于 2013年08月13日 18:07, CHEN Xing 写道: > > 用LC_ALL=C 7z 看看? 你7z的locale还是中文 > > From my Android phone > > 在 2013-8-13 上午9:07,"choury" <[email protected] > <mailto:[email protected]>> 写道: > > 我能说它在我机器上运行是这样的吗…… > $ LANG=C 7z e *.zip > > 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 > p7zip Version 9.20 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,2 CPUs) > > Processing archive: 【批量下载】《银河系漫游指南》系列1-5中文版等.zip > > Extracting ÎÒµÄÎĵµ/¡¶ÒøºÓϵÂþÓÎÖ¸ÄÏ¡·ÏµÁÐ1-5ÖÐÎİæ > Extracting ÎÒµÄÎĵµ/¡¶ÒøºÓϵÂþÓÎÖ¸ÄÏ¡·ÏµÁÐ1-5ÖÐÎİæ/ÔÙ¼û£¬Ð»Ð»Óã.txt > Extracting ÎÒµÄÎĵµ/¡¶ÒøºÓϵÂþÓÎÖ¸ÄÏ¡·ÏµÁÐ1-5ÖÐÎİæ/»ù±¾ÉÏÎÞº¦.txt > Extracting > ÎÒµÄÎĵµ/¡¶ÒøºÓϵÂþÓÎÖ¸ÄÏ¡·ÏµÁÐ1-5ÖÐÎİæ/ÓîÖæ¾¡Í·µÄ²Í¹Ý.txt > Extracting > ÎÒµÄÎĵµ/¡¶ÒøºÓϵÂþÓÎÖ¸ÄÏ¡·ÏµÁÐ1-5ÖÐÎİæ/ÉúÃü.ÓîÖæ¼°Ò»ÇÐ.txt > Extracting > ÎÒµÄÎĵµ/¡¶ÒøºÓϵÂþÓÎÖ¸ÄÏ¡·ÏµÁÐ1-5ÖÐÎİæ/ÒøºÓϵÂþÓÎÖ¸ÄÏ.txt > > Everything is Ok > > Folders: 1 > Files: 5 > Size: 1029334 > Compressed: 1030474 > > convmv -f cp936 -t utf8 -r *.txt > Your Perl version has fleas #37757 #49830 > Starting a dry run without changes... > Skipping, already UTF-8: ./ÉúÃü.ÓîÖæ¼°Ò»ÇÐ.txt > Skipping, already UTF-8: ./ÓîÖæ¾¡Í·µÄ²Í¹Ý.txt > Skipping, already UTF-8: ./ÒøºÓϵÂþÓÎÖ¸ÄÏ.txt > Skipping, already UTF-8: ./ÔÙ¼û£¬Ð»Ð»Óã.txt > Skipping, already UTF-8: ./»ù±¾ÉÏÎÞº¦.txt > No changes to your files done. Use --notest to finally rename the > files. > > > 于 2013年08月13日 15:42, Alex 写道: >> 我也是一知半解的,关于你的命令我是不懂,让别人解答吧 >> >> 在我机器上运行的结果如下: >> $ LANG=C 7z e yhx.zip >> >> 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 >> p7zip Version 9.20 (locale=C,Utf16=off,HugeFiles=on,4 CPUs) >> >> Processing archive: yhx.zip >> >> Extracting �ҵ��ĵ�/������ϵ����ָ�ϡ�ϵ��1-5���İ >> Extracting �ҵ��ĵ�/������ϵ����ָ�ϡ�ϵ��1-5���İ�/�ټ���лл��.txt >> Extracting �ҵ��ĵ�/������ϵ����ָ�ϡ�ϵ��1-5���İ�/��������.txt >> Extracting �ҵ��ĵ�/������ϵ����ָ�ϡ�ϵ��1-5���İ�/���澡ͷ�IJ�.txt >> Extracting �ҵ��ĵ�/������ϵ����ָ�ϡ�ϵ��1-5���İ�/����.���漰һ��.txt >> Extracting �ҵ��ĵ�/������ϵ����ָ�ϡ�ϵ��1-5���İ�/����ϵ����ָ��.txt >> >> Everything is Ok >> >> Folders: 1 >> Files: 5 >> Size: 1029334 >> Compressed: 1030474 >> >> $ convmv -f cp936 -t utf8 -r * >> Your Perl version has fleas #37757 #49830 >> Starting a dry run without changes... >> mv "./������ϵ����ָ�ϡ�ϵ��1-5���İ�" "./《银河系漫游指南》系列1-5中文版" >> mv "./��������.txt" "./基本上无害.txt" >> mv "./����ϵ����ָ��.txt" "./银河系漫游指南.txt" >> mv "./�ټ���лл��.txt" "./再见,谢谢鱼.txt" >> mv "./����.���漰һ��.txt" "./生命.宇宙及一切.txt" >> mv "./���澡ͷ�IJ�.txt" "./宇宙尽头的餐馆.txt" >> No changes to your files done. Use --notest to finally rename the >> files. >> >> $ convmv -f cp936 -t utf8 -r --notest * >> Your Perl version has fleas #37757 #49830 >> mv "./������ϵ����ָ�ϡ�ϵ��1-5���İ�" "./《银河系漫游指南》系列1-5中文版" >> mv "./��������.txt" "./基本上无害.txt" >> mv "./����ϵ����ָ��.txt" "./银河系漫游指南.txt" >> mv "./�ټ���лл��.txt" "./再见,谢谢鱼.txt" >> mv "./����.���漰һ��.txt" "./生命.宇宙及一切.txt" >> mv "./���澡ͷ�IJ�.txt" "./宇宙尽头的餐馆.txt" >> Ready! >> >> $ iconv -f CP936 -t UTF8 基本上无害.txt -o 基本上无害2.txt >> >> 在 2013年8月14日上午6:50,choury <[email protected] >> <mailto:[email protected]>>写 道: >> >> 我用了这个命令来测试 for i in {`convmv --list`};do convmv -f >> $i -t utf8 -r * ; done >> 仍然没有找到有用的输出结果 >> 我的原始文件是http://pan.baidu.com/share/link?shareid=11109& >> uk=3625072214 >> 对这个文件夹的打包下载,看一下是不是压缩文件本身有问题 >> >> >> >> 于 2013年08月13日 14:12, Alex 写道: >>> 试试这个,我以前一直这样用的,使用的是 7z >>> $ LANG=C 7z e *.zip ##ASCII 环境解压缩 >>> $ convmv --list ##列举可用的字符集 ,下例中用的是 >>> shiftjis,请自行更改 >>> $ convmv -f shiftjis -t utf8 -r * ##测试 是否乱码 >>> $ convmv -f shiftjis -t utf8 -r --notest * ##若成功,执行 >>> 此步骤 >>> >>> >>> 在 2013年8月13日上午12:22,choury <[email protected] >>> <mailto:[email protected]>>写 道: >>> >>> 不好意思,我对python并不是十分了解……所以,能否 具体告知 >>> 如何操 作? >>> >>> 于 2013年08月12日 08:13, Shell Xu 写道: >>>> 是否可以用python 来解压zip,出 来的文件名直接用内置的 >>>> code translate转换掉? >>>> >>>> >>>> 在 2013年8月12日上午 6:10,choury <[email protected] >>>> <mailto:[email protected]>>写 道: >>>> >>>> 用 unzip解压 zip文件 文件名乱码 >>>> 我搜索了一下,网上说有-O参数可以用,我 试了一下,似 >>>> 乎现 在debain用的unzip >>>> 版本中 >>>> 没有这个选项 >>>> 我解压以后显示的文件名是这样的 “+��-+-��” >>>> 我又查了一下,似乎convmv可以解决这 个问题,于是我就 >>>> 使用这个命令 convmv -f >>>> gbk -o utf8 "+��-+-��" >>>> 然后输出是 >>>> Unknown option: o >>>> Unknown option: � >>>> >>>> 应该怎么做? >>>> >>>> -- >>>> >>>> ------------------------------------------------------------ >>>> yours >>>> Choury >>>> >>>> >>>> >>>> >>>> -- >>>> 彼節者有間,而刀刃 者無厚;以無厚入 有間,恢恢乎其於游 >>>> 刃必有餘地矣。 >>>> blog: http://shell909090.com/blog/ >>>> about.me <http://about.me>: http://about.me/shell909090 >>> >>> >>> -- >>> ------------------------------------------------------------ >>> yours >>> Choury >>> >>> >> >> >> -- >> ------------------------------------------------------------ >> yours >> Choury >> >> > > > -- > ------------------------------------------------------------ > yours > Choury >
-- ------------------------------------------------------------ yours Choury
signature.asc
Description: OpenPGP digital signature

