My initial description of the problem (within Apple support chat):
I have a weird problem with the Finder on my MacBook, it'll take a few lines to explain:
I double klick a file in Finder, e.g. a *.pdf or *.docx or *.jpg.
As usual, the corresponding app opens, e.g. Adobe Reader for pdf, word for docx or the apple ‘preview’ (not sure about the English app name in German it is called Vorschau) for the jpg.
But the file does not appear, the app opens and shows blank.
Re-double-clicking on the file does not change that. The app is running but shows nothing.
If it use the app, so Adobe reader to open that pdf-file from within the app (same for word opening the doc from within word, and the same for the preview app and any other app) then the file gets displayed.
To make it even weirder, not all files are affected, some open when double-clicking, some don't. And it isn't even incoherent within folders, within the same folder some open, some don't. For some folders none of the files open. For other folders there aren’t any problems.
After two chats with apple support and googling and finding this thread I can better describe the problem and the circumstances under which I encounter the problem:
The files and folder structure in question was created on a computer running Windows and synchronised with GoodSync onto a network attached storage (NAS) running samba fileserver protocol. From there, the data was synched onto the MacBook, also using GoodSync. Some of the data has been synched into other shared folders on that NAS (again using GoodSync).
The problem is linked to special characters either in the filename itself or in one of the folders in the file path. As I am German, these typically are the ‘Umlaut’ ä, ö, ü and ß (I didn’t explicitly test whether the ß is also problematic, the ä, ö, ü definitely are). Not every instance when these characters occur in a filename is a problem, but all problematic files have these either in their name or in one of the folder names in their respective path.
However, if I use finder to access the network share and open the problematic files on the share these files came from, there is no problem with opening them through double clicking. Same for the files on the new shared folder, which have been copied from the local files on the MacBook to that network share (as mentioned above, using GoodSync). While the problematic files stored locally on the MacBook do not open through double clicking, their ‘descendants’ on the network share do.
I tried the workaround from mu-on (31-Mar-2023): ‘Select the file in Finder that you cannot open, press Enter to enter edit mode, and then immediately press Enter again to exit edit mode.’ It works! However, sometimes the problem is not the filename itself, but a folder name in the path which has a ‘Umlaut’ ä, ö, ü (and maybe ß). Using the same workaround on the folder name then also solves the problem.
So I fully concur with the deduction by James Brickley (31-Mar-2023) that there is a problem with the transcoding of (at least some) special characters in file- and/or foldernames. And the workaround from mu-on seems to invoke that transcoding for the file (or folder) it is used on.
I am not sure which software is at fault here, which has to handle the transcoding, whether it is macOS when copying the files from/to network shares or - in my case - GoodSync which handles/initiates the copying procedure.
I cannot trace since which Version of macOS this occurred. The ‘recommended solution’ chat entry herein, booting into safe mode, etc. does not help at all.