I've been facing an issue with german umlauts when using multiple tasks in C#. The WinSCP Session Class told me that a file/folder (with an umlaut) wouldn't exist (but it actually did).
So I have been trying around with the WinSCP client itself and activated the debug log write mode (to see what happens behind the scene). The file/folder with the umlaut existed and I could navigate into the folder and download the file inside the WinSCP client, as expected. However, the log told me that the file/folder was not found but later then successfully accessed to the resource (like it fixed the problem itself).
The interesting thing is: this happens only when I'm trying to use multiple tasks. Using a single session instance to perform a download operation works perfectly fine.
The FTP-server supports UTF8.
The error code I get is 2 (ERROR_FILE_NOT_FOUND from GetLastError).
Things I've ensured/tried:
- Programmatically set the encoding to UTF8
- Tried to encode the folder/file name I want to access to
- Programmatically enabled the logs to make some checks
- Programmatically enabled the default configuration (/ini=nul)