Hi guys
I’m a little newbie with Truenas and I’ve found a problem. My problem is that I have a lot of files with special characters (like “:”," ’ ",…) and when I try to copy into Truenas server appears a mesage indicating that the name is incorrect.
Does anybody help me?
Any help would be appreciated.
Regards
Antonio
This is done for compatibility purposes with SMB clients (and some characters such as “:” can have a special meaning over the SMB protocol). There are hacks to get around it, but the long-term best plan is to know what characters are restricted and avoid using them in file names. Doing otherwise breaks compatibility with Windows clients for example.
Wouldn’t enabling Apple-style Character Encoding suffice?
You would lose the original special characters in the filename, but they would appear almost the same.
At least this is better than seeing a folder full of mangled “DOS” names or having to rename all your files to remove special characters before copying them to the SMB share.
This happens often when using downloaders and crawlers, such as yt-dlp
and gallery-dl
. It’s not that the user intentionally uses special characters when creating files. They just happen to be named that way when downloaded.
Sometimes, but not always. It will help for some characters, but not for wholly-reserved strings. Remapping characters incurs a performance penalty as well. The decision about how to encode filenames needs to be made before writing any data to the share, otherwise you’ll end up with fairly large problems.