解决FAT32文件系统分区中文文件名在Linux下显示乱码
2009-06-26 01:15
886 查看
原贴:
http://ericzqma.blogs.mu/2009/06/11/%E8%A7%A3%E5%86%B3fat32%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F%E5%88%86%E5%8C%BA%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%90%8D%E5%9C%A8linux%E4%B8%8B%E6%98%BE%E7%A4%BA%E4%B9%B1%E7%A0%81/
升级到Fedora 11后,使用以前的fstab自动挂载我的fat32分区居然发现我的fat32文件系统中的中文文件名显示为乱码。
找了下相关资料发现是iocharset的问题:
iocharset=name — Character set to use for converting between the
encoding is used for user visible filename and 16 bit Unicode
characters. Long filenames are stored on disk in Unicode format, but
Unix for the most part doesn’t know how to deal with Unicode. By
default, FAT_DEFAULT_IOCHARSET setting is used.
Windows文件系统的长文件名是用16位的Unicode存储的, 而Linux文件系统不支持16位的字符,所以需要在两者之间转换,这就是iocharset要完成的功能。
使用utf8=1选项进行mount就可以了,相应的fstab行如下:
使用mount命令时加入 -o utf8=1就可以了。
不建议使用iocharset=utf8选项:
NOTE: “iocharset=utf8″ is not recommended.
If unsure, you should consider the following option instead.
utf8=<bool> — UTF-8 is the filesystem safe version of Unicode that is used by the console.
It can be be enabled for the filesystem with this option.
If ‘uni_xlate’ gets set, UTF-8 gets disabled.
<bool> : 0,1,yes,no,true,false
Reference:
http://linuxman.blog.ccidnet.com/blog-htm-do-showone-type-blog-itemid-283304-uid-60710.html
http://ericzqma.blogs.mu/2009/06/11/%E8%A7%A3%E5%86%B3fat32%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F%E5%88%86%E5%8C%BA%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%90%8D%E5%9C%A8linux%E4%B8%8B%E6%98%BE%E7%A4%BA%E4%B9%B1%E7%A0%81/
升级到Fedora 11后,使用以前的fstab自动挂载我的fat32分区居然发现我的fat32文件系统中的中文文件名显示为乱码。
找了下相关资料发现是iocharset的问题:
iocharset=name — Character set to use for converting between the
encoding is used for user visible filename and 16 bit Unicode
characters. Long filenames are stored on disk in Unicode format, but
Unix for the most part doesn’t know how to deal with Unicode. By
default, FAT_DEFAULT_IOCHARSET setting is used.
Windows文件系统的长文件名是用16位的Unicode存储的, 而Linux文件系统不支持16位的字符,所以需要在两者之间转换,这就是iocharset要完成的功能。
使用utf8=1选项进行mount就可以了,相应的fstab行如下:
/dev/sda1 /mnt/wxp vfat umask=0000,utf8=1 0 0
使用mount命令时加入 -o utf8=1就可以了。
不建议使用iocharset=utf8选项:
NOTE: “iocharset=utf8″ is not recommended.
If unsure, you should consider the following option instead.
utf8=<bool> — UTF-8 is the filesystem safe version of Unicode that is used by the console.
It can be be enabled for the filesystem with this option.
If ‘uni_xlate’ gets set, UTF-8 gets disabled.
<bool> : 0,1,yes,no,true,false
Reference:
http://linuxman.blog.ccidnet.com/blog-htm-do-showone-type-blog-itemid-283304-uid-60710.html
相关文章推荐
- Linux 系统中文文件显示乱码
- [乐意黎原创]]CuteFTP 操作文件时,中文文件名显示乱码的解决
- 解决putty终端中显示linux系统中C编程使用curses中文乱码的问题
- WINDOWS上传中文文件名文件到LINUX显示乱码
- Xshell4连接,Linux系统中文显示乱码解决办法
- Linux_解决windows传送到linux下中文文件名及文件内容乱码问题
- 英文版win7 系统文件路径中的中文显示乱码解决方法
- Xshell4连接Linux系统中文显示乱码解决办法
- 有关linux下挂载windows分区显示中文文件名的解决
- 解决Linux下windows分区中显示中文文件名的方法
- 解决putty终端中显示linux系统中C编程使用curses中文乱码的问题
- 解决部署在Linux下的java程序上传文件,文件名中文乱码
- 解决windows传送到linux下中文文件名及文件内容乱码问题
- 解决linux下中文文件名显示乱码问题
- Xshell4连接,Linux系统中文显示乱码解决办法
- 解决SecureCRT登陆linux系统,碰到显示中文乱码
- putty在登陆Linux系统后运行命令中文显示乱码的解决办法
- 解决Ubuntu系统中文乱码显示问题,终端打开文件及查看目录
- linux下将中文文件名文件cp到windows目录下后文件名乱码问题的解决
- 解决windows传送到linux下中文文件名及文件内容乱码问题