When I use .net assembly to compare directories, some of the remote files have
"&" in the name.
When I call
ComparisonDifference shows the remote file name like
But the actual file name is
And then when I call
Resolve method, it throws exception:
In the session options, I've set the protocol to SFTP, and in the same session if I call EnumerateRemoteFiles, the files names there are correct.WinSCP.SessionRemoteException: Can't get attributes of file '/home/xxxxftp/outgoing/Dividend&Interest.xls'.
No such file or directory.
In the WinSCP software, the files are listing correctly and everything is fine there too. I read the FAQ but didn't find any place to enforce UTF-8 in .NET code.
Any help? Thanks a lot.