Click to See Complete Forum and Search --> : Samba 3 and International characters


GarenTsen
04-04-2004, 05:57 AM
Hi,

I've upgraded my RH8 server to Fedora Core 1 and everything went fine. What I did was to install FC1 on another disk and when everything worked I removed the disk with RH8.

But... it seems that Samba 3 works a bit differently with international characters. My swedish characters (åäö) worked fine in my older system, now I just get garbled filenames when browsing files and directories from my Win XP client.

After som digging around I found that Samba 3 uses Unicode but I don't understand why this should be a problem. I've tried alot of different settings in smb.conf but nothing seems to rectify the situation.

If I create a file with these characters from my winXP client it works. It is just the older ones that won't show correctly. I'd fix it by hand but my LVM volume is about 650 GB with files and folders with these charactes all over the place.

Is there anyone out there that has experienced the same and managed to fix it (or can give me any pointers towards a solution)?

Here's what I've done in smb.conf:

[global]

character set = iso8859-1
valid chars = 206:217 204:216 224:231 32
client codepage = 850

hard candy
04-04-2004, 09:03 AM
After looking through some sites and mailing lists, nothing really gives an answer. Maybe try the Swedish LUG sites/mailing lists and maybe SOT (a Finnish distro) mailing list. The only other thing would be making sure the language/charset is enabled in the kernel.

Hayl
04-04-2004, 09:10 AM
not sure what kernel you are using but the ones I use have a default NLS that you can set.

Use a default NLS
CONFIG_SMB_NLS_DEFAULT
Enabling this will make smbfs use nls translations by default. You
need to specify the local charset (CONFIG_NLS_DEFAULT) in the nls
settings and you need to give the default nls for the SMB server as
CONFIG_SMB_NLS_REMOTE.

GarenTsen
04-04-2004, 10:21 AM
Got it!

found a tool called convmv that fixed it for me.

First I changed my smb.conf to:

[global]
dos charset = utf8
unix charset = utf8
display charset = utf8

Then I ran the following to change all files:

convmv -f iso-8859-1 -t utf8 -r /path/to/files/ --notest

And, voilá, the files are perfectly shown in WinXP. They are garbled in Linux but that doesn't bother me much.