Files_external: problems with unicode on samba-share (debian wheezy)

it’s a fresh install of nextcloud 11 and we have the problem, that files or folders with unicode-characters in their name lead to wrong display and behaviour.

each unicode-char in a filename leads to a cut-off of the current name and a later entry in directory will be appended at this position.

for example:

normal tree is:
AAAA
BBBB
CÄCC
DDDD
EEÖE
FFFF
GGGG
HHHH

leads to:
AAAA
BBBB
DDDD
EE C HHHH
FFFF
GGGG

(this is an simple example, with other names other mixtures occure)

mixed names are not accessible at all, trying to select a directory with a mixed-name brings the user back to “all files”.

the nextcloud-system is a wheezy-container, the samba-server another wheezy-container on another host.
the php-smbclient-module is not available from scratch in wheezy, a try to build one from source compiles, but dows not work (the share won’t be accessible any more without any concrete error in log)

any suggestions to fix this problem?

regards

m.

ok, problem is not in nextcloud.
because smbclient-php does not work (and has been dropped), nextcloud accesses the share via calls of smbclient.
unfortunately it’s default-config in wheezy (and maybe others) does say, that encoding is ascii.
calling smbclient on shell shows same garbage.
adding a line “display charset = UTF8” to the global-section of /etc/samba/smb.conf solves the problem.

1 Like