It looks like the client and the server are using different character encoding for some reason.
Please try setting Sftp
's Encoding
property to the following values and determine whether any of them works:
System.Text.Encoding.UTF8
Rebex.EncodingTools.GetEncoding("windows-1252")
Rebex.EncodingTools.GetEncoding("iso-8859-1")
For example:
var client = new Sftp();
client.Encoding = EncodingTools.GetEncoding("windows-1252")
client.Connect(...);
client.Login(...);
If none of these work, please create a debug log using Sftp.LogWriter
and either post it here or mail it to us for analysis:
var client = new Sftp();
client.LogWriter = new Rebex.FileLogWriter("rebexlog.txt", Rebex.LogLevel.Debug);
client.Encoding = Encoding.UTF8;
client.Connect(...);
client.Login(...);
client.ChangeDirectory(...); // change the directory to the one containing the files with umlauts
string[] items = client.GetRawList(); // get a listing of that directory
This would hopefully make it possible to tell what's wrong.