i stumbled across the problem that some files stored on my NAS were visible but not readable/writeable from MACs, while windows clients worked fine. further investigation showed that the affected files' filenames contained diacritic characters instead of the corresponding utf-8 character (e.g. the file name contains sequence "\u0308" instead of the corresponding "ö" in utf-8 encoding.).
i know i can convert the file names to UTF-8 using
but this is only a temporary solution for files already on the NAS.
e.g. even a windows client will possibly save a file using a filename with combining diaeresis, if it is just saving a received email attachment which contained those characters in the filename in the first place.
what i am looking for is a way to deny those characters to reach the server file system.
does not help, as windows handles those chars fine, they are not filtered, they reach the server.
i stumbled across the vfs_catia which offers translating illegal characters in filenames, e.g.
...but i would need to replace two bytes and not just one?
or, is there a way to make MAC able to handle those filenames? (10.12 and 10.14 tested, not working)
help would be appreciated ;)
i know i can convert the file names to UTF-8 using
Code:
convmv -f utf-8 -t utf-8 --nfc -r .
but this is only a temporary solution for files already on the NAS.
e.g. even a windows client will possibly save a file using a filename with combining diaeresis, if it is just saving a received email attachment which contained those characters in the filename in the first place.
what i am looking for is a way to deny those characters to reach the server file system.
Code:
mangled names = illegal
does not help, as windows handles those chars fine, they are not filtered, they reach the server.
i stumbled across the vfs_catia which offers translating illegal characters in filenames, e.g.
Code:
vfs objects = catia catia:mappings = 0x22:0xa8
...but i would need to replace two bytes and not just one?
or, is there a way to make MAC able to handle those filenames? (10.12 and 10.14 tested, not working)
help would be appreciated ;)
Last edited: