[Samba] Accented letters in shared USB drive

Rodolfo Medina rodolfo.medina at gmail.com
Mon Jun 12 23:00:00 UTC 2017


Aurélien Aptel <aaptel at suse.com> writes:

> 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

Thanks.  `iocharset=utf-8' is alreay in my /etc/fstab:

 UUID=82dda6fe-4817-48ee-b758-91cad19cbb7c  	/mnt/sdcard2	ext4    rw,user,noauto       0       0

Why does it have no effect?

Rodolfo



More information about the samba mailing list