[Samba] Accented letters in shared USB drive (was: Share USB pendrive in ADSL router)
Aurélien Aptel
aaptel at suse.com
Mon Jun 12 14:06:38 UTC 2017
Hi Rodolfo (sorry for dup email),
Rodolfo Medina via samba <samba at lists.samba.org> writes:
> ...For example, when I copy the ~/università to /mnt/shared, I get:
>
> universit\ �/
>
> Or, if in /mnt/shared I do: `touch affinché', I get:
>
> affinch\ �
>
> I've never had this problem before, in my Linux home directory. Please suggest
> whoever can how to face and solve the problem.
Assuming your usb key is formatted with VFAT [1], filenames should be
stored in UCS-2 on the key. Let's also assume your linux client uses
utf8 for filenames.
cifs.ko supports transcoding filenames via the iocharset option, where
you are supposed to give the local system encoding cifs.ko should expose
the remote filenames in. This option only works if the SMB server
supports unicode though.
You can try to use mount.cifs .... -o iocharset=utf-8
That being said, I think it's the default so the SMB server might be at
fault here in which case you might get something working (keeping
accepts) using smbclient but it's less convenient.
1: https://en.wikipedia.org/wiki/File_Allocation_Table#VFAT
--
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3
SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
More information about the samba
mailing list