[问题]怎样查看文件名是什么编码方式?

重复贴和参考价值不大的帖子,版主维护
回复
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
送出感谢: 0
接收感谢: 0
联系:

[问题]怎样查看文件名是什么编码方式?

#1

帖子 percy » 2007-10-31 12:17

执行ls

代码: 全选

pjq@pjq-desktop:/media/sda6/movies$ ls
ڵ.?            [ǰ].DVD-RMVB.Ļ.[ġ˹06ƱƬ].CD1.rm  С[]02.rm
̫֮               [ǰ].DVD-RMVB.Ļ.[ġ˹06ƱƬ].CD2.rm  Ӱ֮.rmvb
[07.26]2       jpm                             Ф˵ľ
[10.24]?-tc    Linux_Movies                    Ҹ
16             movie_list.txt                  ʱЧӦ
ѻɱ[³˹ ˹䶯Ƭ]    movies.bmp                      ս.Bad.Boys.II.2003.SC-WAF
60             ˵ ȫ.asp.rmvb                    綷ʿ
-A.rm          °˶.rmvb                         东成西就
-B.rm          ̫.rmvb                           赶ɱ(ķ.³˹)
Ѫ˫-B.rmvb      TheCodeLinux.zip                捍卫机密
[ָħ]ϼ ?   .wmv  _.wmv                           三国演义
-II-B.rmvb     οֹ                               麣(ķ³˹ݡά)
之前好像执行过

代码: 全选

 convmv -f UTF-8 -t GBK -r /media/sda6/movies/ --notest
现在就成了这个样子,有什么方法将文件名恢复正常吗?
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
送出感谢: 0
接收感谢: 7 次
联系:

#2

帖子 BigSnake.NET » 2007-10-31 12:26

convmv -t UTF-8 -f GBK -r /media/sda6/movies/ --notest
反过来
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
chattan
论坛版主
帖子: 3922
注册时间: 2007-07-11 20:59
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 chattan » 2007-10-31 12:32

哈哈~~~~~反了!!
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 percy » 2007-10-31 12:56

BigSnake.NET 写了:convmv -t UTF-8 -f GBK -r /media/sda6/movies/ --notest
反过来
没用啊

代码: 全选

pjq@pjq-desktop:~$  convmv -f GBK -t UTF-8 -r /media/sda6/movies/ --notest
Skipping, already UTF-8: /media/sda6/movies/[ǰ].DVD-RMVB.Ļ.[ġ˹06ƱƬ].CD2.rm
Skipping, already UTF-8: /media/sda6/movies/Ӱ֮.rmvb
Skipping, already UTF-8: /media/sda6/movies/˵ ȫ.asp.rmvb
Skipping, already UTF-8: /media/sda6/movies/̫.rmvb
Skipping, already UTF-8: /media/sda6/movies/С[]02.rm
Skipping, already UTF-8: /media/sda6/movies/[ǰ].DVD-RMVB.Ļ.[ġ˹06ƱƬ].CD1.rm
Skipping, already UTF-8: /media/sda6/movies/Ѫ˫-B.rmvb
Skipping, already UTF-8: /media/sda6/movies/°˶.rmvb
Skipping, already UTF-8: /media/sda6/movies/[ָħ]ϼ Ԫ   .wmv
Skipping, already UTF-8: /media/sda6/movies/綷ʿ/綷ʿcd2.rmvb
Skipping, already UTF-8: /media/sda6/movies/綷ʿ/綷ʿcd1.rmvb
Skipping, already UTF-8: /media/sda6/movies/綷ʿ
Skipping, already UTF-8: /media/sda6/movies/ʱЧӦ
Skipping, already UTF-8: /media/sda6/movies/Linux_Movies/ϵͳRevolutionOS.rmvb
Skipping, already UTF-8: /media/sda6/movies/赶ɱ(ķ.³˹)/赶ɱCD2.rmvb
Skipping, already UTF-8: /media/sda6/movies/赶ɱ(ķ.³˹)/赶ɱCD1.rmvb
Skipping, already UTF-8: /media/sda6/movies/赶ɱ(ķ.³˹)
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/[YYTvO]ټҽ̳_ڵĵ02_֮ڵ.2006.10.02.rmvb
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/[YYTvO]ټҽ̳_ڵĵ03_֮ڵ.2006.10.03.rmvb
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/[YYTvO]ټҽ̳_ڵĵ04_֮ڵ.2006.10.04.rmvb
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/[YYTvO]ټҽ̳_ڵĵ05_֮ڵ.2006.10.05.rm
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/[YYTvO]ټҽ̳_ڵĵ07_֮ڵ.2006.10.07.rmvb
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/[YYTvO]ټҽ̳_ڵĵ6_֮ڵ.2006.10.06.rmvb
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/ڵׯӡĵþ ̬״̬.wmv
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/ڵׯӡĵ 볬Խ.wmv
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/ڵׯӡĵ ·.wmv
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/ڵׯӡĵ ˳Ӧ.wmv
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/ڵׯӡĵö_дС.wmv
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/ڵׯӡĵ ʶԼ.wmv
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/ڵׯӡĵ .wmv
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/ڵׯӡĵһ_ׯӺ.wmv
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/ڵׯӡĵð ̸Ц.wmv
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ/[YYTvO]ټҽ̳_ڵĵ01_֮ڵ.2006.10.01.rmvb
Skipping, already UTF-8: /media/sda6/movies/ڵ.ׯ
Skipping, already UTF-8: /media/sda6/movies/[10.24]޼-tc/޼CD2.rmvb
Skipping, already UTF-8: /media/sda6/movies/[10.24]޼-tc/޼CD1.rmvb
Skipping, already UTF-8: /media/sda6/movies/[10.24]޼-tc
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-02.rmvb
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-03.rmvb
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-04.rm
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-05.rm
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-06.rm
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-07.rm
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-08.rm
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-09.rm
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-10.rm
Skipping, already UTF-8: /media/sda6/movies/jpm/˼-ƿ÷-01.rmvb
Skipping, already UTF-8: /media/sda6/movies/Ф˵ľ/Ф˵ľ.cd2.rmvb
Skipping, already UTF-8: /media/sda6/movies/Ф˵ľ/Ф˵ľ.cd1.rmvb
Skipping, already UTF-8: /media/sda6/movies/Ф˵ľ/Ф˵ľ.cd3.rmvb
Skipping, already UTF-8: /media/sda6/movies/Ф˵ľ
Skipping, already UTF-8: /media/sda6/movies/οֹ/οֹ.rmvb
Skipping, already UTF-8: /media/sda6/movies/οֹ
Skipping, already UTF-8: /media/sda6/movies/ѻɱ[³˹ ˹䶯Ƭ]/ѻɱ.The.Jackal.1997.HDRip.XviD-TLF.cd2.rmvb
Skipping, already UTF-8: /media/sda6/movies/ѻɱ[³˹ ˹䶯Ƭ]/ѻɱ.The.Jackal.1997.HDRip.XviD-TLF.cd1.rmvb
Skipping, already UTF-8: /media/sda6/movies/ѻɱ[³˹ ˹䶯Ƭ]
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II-2.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II-3.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II-4.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II-5.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II-6.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II-7.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II-8.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II-9.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II.txt
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys-II-ս II-0.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF/Bad Boys II-ս II-1.jpg
Skipping, already UTF-8: /media/sda6/movies/ս.Bad.Boys.II.2003.SC-WAF
Skipping, already UTF-8: /media/sda6/movies/东成西就
Skipping, already UTF-8: /media/sda6/movies/Ҹ
Skipping, already UTF-8: /media/sda6/movies/̫֮/̫֮B.rm
Skipping, already UTF-8: /media/sda6/movies/̫֮/̫֮A.rm
Skipping, already UTF-8: /media/sda6/movies/̫֮
Skipping, already UTF-8: /media/sda6/movies/麣(ķ³˹ݡά)/麣_B.rmvb
Skipping, already UTF-8: /media/sda6/movies/麣(ķ³˹ݡά)/麣_A.rmvb
Skipping, already UTF-8: /media/sda6/movies/麣(ķ³˹ݡά)
Skipping, already UTF-8: /media/sda6/movies/捍卫机密
Skipping, already UTF-8: /media/sda6/movies/三国演义
Ready!
pjq@pjq-desktop:~$ cd /media/sda6/movies/
pjq@pjq-desktop:/media/sda6/movies$ ls
ڵ.?            [ǰ].DVD-RMVB.Ļ.[ġ˹06ƱƬ].CD1.rm  С[]02.rm
̫֮               [ǰ].DVD-RMVB.Ļ.[ġ˹06ƱƬ].CD2.rm  Ӱ֮.rmvb
[07.26]2       jpm                             Ф˵ľ
[10.24]?-tc    Linux_Movies                    Ҹ
16             movie_list.txt                  ʱЧӦ
ѻɱ[³˹ ˹䶯Ƭ]    movies.bmp                      ս.Bad.Boys.II.2003.SC-WAF
60             ˵ ȫ.asp.rmvb                    綷ʿ
-A.rm          °˶.rmvb                         东成西就
-B.rm          ̫.rmvb                           赶ɱ(ķ.³˹)
Ѫ˫-B.rmvb      TheCodeLinux.zip                捍卫机密
[ָħ]ϼ ?   .wmv  _.wmv                           三国演义
-II-B.rmvb     οֹ                               麣(ķ³˹ݡά)
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#5

帖子 eexpress » 2007-10-31 12:59

挂载的参数去看啊。

已经挂载,输出就是utf8了

cat /etc/mtab
● 鸣学
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 percy » 2007-10-31 13:00

eexpress 写了:挂载的参数去看啊。

已经挂载,输出就是utf8了

cat /etc/mtab

代码: 全选

/dev/sda6 /media/sda6 vfat rw,utf8,umask=000,gid=46 0 0
就是utf8啊,
[/code]
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#7

帖子 eexpress » 2007-10-31 13:05

挂载参数正常。
看来是混杂编码了。你的文件。有些正常的哦。你试试iocharset=cp936参数。多找找参数说明。
● 鸣学
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
送出感谢: 0
接收感谢: 0
联系:

#8

帖子 percy » 2007-10-31 13:09

eexpress 写了:挂载参数正常。
看来是混杂编码了。你的文件。有些正常的哦。你试试iocharset=cp936参数。多找找参数说明。
是啊有些是正常的,
但执行了上面的那个命令后
就变成这样了 :?:
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
送出感谢: 0
接收感谢: 0
联系:

#9

帖子 percy » 2007-10-31 13:10

不管了,睡觉了,反正里面都是电影,不行的话全部删除
:em87 :em26 :em14
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#10

帖子 eexpress » 2007-10-31 13:14

--notest。在你没测试前。是有危险的。这个你怪球猫吧。
● 鸣学
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
送出感谢: 0
接收感谢: 0
联系:

#11

帖子 percy » 2007-10-31 22:53

eexpress 写了:--notest。在你没测试前。是有危险的。这个你怪球猫吧。
球猫是。。。。?
回复

回到 “归档贴”