Is there a way to list and download files that have unicode chars in file name?
Our code looks something like this:
Sftp client = new Sftp();
SftpItemCollection list = client.GetList("*.txt");
foreach (SftpItem item in list)
Stream stream = client.GetDownloadStream(item.Name);
//pass the stream
Files that have Chinese symbols as file name are listed as "????.txt" and cannot be downloaded.
I tried switching encoding with:
client.Encoding = System.Text.Encoding.Unicode;
but then I don't get any result.