Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2009 21:26:24 -0700
From:      Yuri <yuri@rawbw.com>
To:        freebsd-questions@freebsd.org
Subject:   How to read files from FAT disk which names contain Chinese characters?
Message-ID:  <49D19B70.8080901@rawbw.com>

next in thread | raw e-mail | index | archive | help
When I mount FAT disk all such files cause 'ls' to produce messages like 
this:
ls: WS???????.WMA: Invalid argument

I found online that I should use command:
mount_msdosfs -D cp936 -L zh_CN.UTF-8 /dev/device /path/to/folder
but it doesn't work either.

Handbook (http://www.freebsd.org/doc/en/books/handbook/lang-setup.html) 
mentions
that in order to be able to see Russian file names fstab has to contain 
this:

/dev/ad0s2      /dos/c  msdos   rw,-Wkoi2dos,-Lru_RU.KOI8-R 0 0

But what about Chinese file names?

And how come different locales require different commands to mount?
What if file system will have both Chinese and Russian file names?

Thanks,
Yuri



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49D19B70.8080901>