Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

Answered: SFTP .Net - downloading Files with umlauts like äöü results in File not found

$
0
0

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.


Viewing all articles
Browse latest Browse all 3862

Trending Articles