关于Linux下usb(vfat格式)挂载中文乱码问题的解决

来源:互联网 发布:天天酷跑数据 编辑:程序博客网 时间:2024/06/10 11:52

两种方式:

 

一种是通过终端手动挂载加上参数: -o iocharset=utf8

                  如:# mount /dev/sdb1 -t vfat /mnt/usb/ -o iocharset=utf8

第二种是通过加入内核支持在File systems  --->  DOS/FAT/NT Filesystems  --->中有两项修改为:

 

(936) Default codepage for FAT     

(utf8) Default iocharset for FAT 

 

codepage其实是charset encoding的别称,而936是GBK编码。详见http://en.wikipedia.org/wiki/Codepage。

为了支持cp936,你必须在打开对它的支持,在File systems  ---> -*- Native language support  --->Simplified Chinese charset (CP936, GB2312)

 

iocharset通过man mount来查看解释不再赘述。

 

 

原创粉丝点击