HOWTO have Chinese filenames in Samba
From Gentoo Linux Wiki
| Installation • Kernel & Hardware • Networks • Portage • Software • System • X Server • Gaming • Non-x86 • Emulators • Misc |
Please format this article according to the guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article
Have you system Chinese-enabled
Follow this great guide [1] to let your gentoo to support Chinese first.
- I think arphicfonts is the key. You can choose not to install the two others.(I've only installed the first two, working ok)
Make your gentoo UTF-8 Ready
Samba
I assume you have installed Samba successfully. If not please refer to the following: HOWTO Setup Samba
Then in your /etc/samba/smb.conf, add these lines:
[global] dos charset = UTF-8 unix charset = UTF-8 display charset = UTF-8
Now mount the shared directory from Windows by the following command:
smbmount //servername/shared_directory destination_dir -o iocharset=utf8,codepage=cp950
Note: There is no space around the comma.
You should have the filenames displayed in Chinese properly!
Contributor
13:49, 12 Jun 2005 (GMT) Bernard Fok, Melbourne
