Hi, I have this Samba server. I'm from Portugal, so my users give names to their files containig characters like ?, ? , ?, etc.>From the Windows point of view, everything is ok, but in the Linuxfilesystem, those characters became a real mess. The problem is that i need to record CDs directly on the server, and i have a good deal of file and directory names all messed up. I've already tried using "unix charset = CP860" (860 is the portuguese codepage) in smb.conf, but no good. I've read the documentation, but got to no conclusion. In short, i'd like to when a user saves a file, let's say "ol?.txt" in a Samba share, the file in the Linux filesystem is also called "ol?.txt" and not "ol_?.txt" or something messy alike. A last info: [root@dori home]# echo $LANG en_US.ISO-8859-1 [root@dori home]# Any help would be appreciated. Warm Regards, M?rio Gamito
On 2004-07-28 at 12:02 +0100 Mario Gamito sent off:>I've already tried using "unix charset = CP860" (860 is the portuguese >codepage) in smb.conf, but no good.okay, I assume you have samba 3.0.x then. leave the default (UTF-8) here. Otherwise you will not be able to create arbitrary characters from your win* clients and you will run into problems sooner or later.>I've read the documentation, but got to no conclusion. > >In short, i'd like to when a user saves a file, let's say "ol?.txt" in a >Samba share, the file in the Linux filesystem is also called "ol?.txt" >and not "ol_?.txt" or something messy alike. > >A last info: > >[root@dori home]# echo $LANG >en_US.ISO-8859-1 >[root@dori home]#switch to UTF-8 locale if possible. Then you will also see characters like ? correctly on the server. You also need a mkisofs which has utf-8 support to create correct joliet images. Rockrigde does not care about the encoding of the filenames, as it is a POSIX-like filesystem extension. The version of mkisofs SUSE ships with 9.1 for example is patched to be able to handle utf8 as well for joliet image creation. Take a look at the manpage of mkisofs on how to specify the charset. Remember you also have to specify the correct iocharset when you *mount* joliet CD images. So even if you do not switch to UTF-8 locales, you can tell mkisofs that the files are utf8 and can mount them as iso8859-1 later. The quicker but less foresighted solution is to use "unix charset = iso8859-1". Bjoern