In the WinSCP.ini-file there is a section for every Transfer profile
[Configuration\Interface\CopyParam\n], the sections contain (among others)
LocalInvalidCharslist in order to replace any special characters, i.e. the single quote? I have tested with adding the single quote
'(without the double quote around it, of course) as well as
%27, unfortunately without any effect.
We transfer files from an SFTP server, those files frequently contain (Windows allowed) special characters, however, the downloading system has problems to handle some of them.
I have tried several configurations, WinSCP 5.19.6 and 5.21.7, FTP server running on Linux (I guess, I don't have direct access to that machine), MacOS and Windows. The standard characters as defined in the list are replaced correctly, but not additionally inserted characters.