1

I've got an issue on a Debian(11.3) server we host, I mounted a windows server share through cifs and fstab but when I try to access or list a few folders which contains special characters like "" I have an error saying that the folder doesn't exist. Here is the mount arguments :

auto,user=,pass=,vers=3.0,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm

I tried to change to cp850 and a few others, nothing changes. Here is the locale output :

LANG=fr_FR.UTF-8
LANGUAGE=
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=

Interesting fact, if i try to create a local folder on ext4 partition with the special character listed above it works and i can list it.

If I could settled with just renaming folders i would do it but there's 100% chance that the client will receive other folders like that regurlarly.

Thank in advance for any hint or help, I made quite a few searches and don't find solutions

1 Answer 1

0

Windows doesn’t use utf-8 for file name encoding. Thus, you cannot see window’s non-ascii folders and files properly from linux. You can change window’s default encoding to utf-8 but I’m not sure whether this option is available or not for Windows 2012R2. Please refer to this answer (intl.cpl method).

3
  • chcp only sets the encoding Windows uses on the console, it doesn't affect the filesystem. Apr 29, 2022 at 4:55
  • @dave_thompson_085 thanks for comment. I modified answer a bit for details.
    – 3735943886
    Apr 29, 2022 at 5:58
  • Thank you for the answers i'll look into that
    – chnateag
    May 2, 2022 at 16:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .