Special character in ComparisonDifference file name when session.CompareDirectories
Hi,
When I use .net assembly to compare directories, some of the remote files have
When I call
But the actual file name is
And then when I call
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.
When I use .net assembly to compare directories, some of the remote files have
"&"
in the name.
When I call
CompareDirectories
, the ComparisonDifference
shows the remote file name like "/home/xxxxftp/outgoing/Dividend&Interest.xls"
But the actual file name is
"/home/xxxxftp/outgoing/Dividend&Interest.xls"
.
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.