Charachter encoding problem in Samba
Hi
I have set up a SLES10SP2 machine with Samba, and I am having trouble with the use of swedish characters in filenames.
The output from locale of the machine is:
LANG=en_US.UTF-8
LC_CTYPE=en_US
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Samba is by default set up to use UTF-8 as well, but when I create a file from Windows the swedish (هنِ) characters are garbage in Linux, and when I create the file from Linux the swedish characters are replaced with underscores in Windows.
I changed the Samba server parameter "unix charset" to ISO-8859-15 and then it seems to work both ways, but I assume that using UTF-8 would be better since all new systems support this. I expected problems with older files using other encodings, but the problems here apply to newly created files.
Anyone have an idea on how to do to get UTF-8 working ?
|