[Samba] Question regarding samba 2.2.8a and CIFS

Loic Domaigne loic-dev at gmx.net
Wed Jun 27 20:57:45 GMT 2007

Hello everybody,

I have a question regarding SAMBA and CIFS. I have a network attached storage
(NAS) running Samba 2.2.8a with the following setting:

[ global ]
client code page = 850
character set = ISO8859-1

Files with German Umlaute (like ä,ö,ü etc) created from a Windows XP box are
saved on the shared storage using ISO8859-1 encoding. I could verified by
reading directly the disk of the NAS:

[loic at neumann ~]$ ls -b mnt/
A\304O\326\334\334.txt  try_\344\366\374.txt

[loic at neumann ~]$ ls mnt/ | iconv -f ISO_8859-1

which is exactly the expected result.

Now if I mount this NAS using CIFS:
[loic at neumann DNS-323]$ sudo mount -t cifs -o
user=loic%xxx,iocharset=iso8859-1 //192.168.xxx.xxx/Volume_1 /mnt/nas/

Then, the filenames are mapped using CP850 encoding, and not ISO-8859-1:
[loic at neumann DNS-323]$ ls -b /mnt/nas/
A\216O\231\232\232.txt  try_\204\224\201.txt
[loic at neumann DNS-323]$ ls /mnt/nas/ | iconv -f CP850

It looks like that my Linux server is considered like a Windows server. I
guess, this is the expected behavior, right?

Thanks for your help,

GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

More information about the samba mailing list