Good day,
I am having some troubles to open and read files in a UBUNTU SFTP server that had accents in the name, I was traying to rename them using the library to remove the accents remotly because I have at leats 620.000 files in that way.
When I recived the the names of the files in a folder from method
```
public IEnumerable<SftpFile> ListDirectory(string path, Action<int> listCallback = null);
```
in the __SftpClient class__ I Only get something like __Pa?s.doc__ when the correct name of the field should be __País.doc__ (I must change the name to __pais.doc__ ) and the same happened with the other vowals with accent, but because of the __?__ i can not rename the file correctly.
Looking in the code, I found in the private method
```
private IEnumerable<SftpFile> InternalListDirectory
```
The next line of code
```
result.AddRange(from f in files
select new SftpFile(_sftpSession, string.Format(CultureInfo.InvariantCulture, "{0}{1}", basePath, f.Key), f.Value));
```
I thougth that the problem was the CultureInfo.InvariantCulture that remove the accent and put only ascii letters in the name but, I was wrong after remove the instruction and recompile the library using the source code I can not make that works.
I hope you can help me to find a quickly way to fix it (maybe hacking the library) and add the multilanguage support in next versions or you can tell me how to configure the library to work in spanish without troubles.
Thanks in advance.
I am having some troubles to open and read files in a UBUNTU SFTP server that had accents in the name, I was traying to rename them using the library to remove the accents remotly because I have at leats 620.000 files in that way.
When I recived the the names of the files in a folder from method
```
public IEnumerable<SftpFile> ListDirectory(string path, Action<int> listCallback = null);
```
in the __SftpClient class__ I Only get something like __Pa?s.doc__ when the correct name of the field should be __País.doc__ (I must change the name to __pais.doc__ ) and the same happened with the other vowals with accent, but because of the __?__ i can not rename the file correctly.
Looking in the code, I found in the private method
```
private IEnumerable<SftpFile> InternalListDirectory
```
The next line of code
```
result.AddRange(from f in files
select new SftpFile(_sftpSession, string.Format(CultureInfo.InvariantCulture, "{0}{1}", basePath, f.Key), f.Value));
```
I thougth that the problem was the CultureInfo.InvariantCulture that remove the accent and put only ascii letters in the name but, I was wrong after remove the instruction and recompile the library using the source code I can not make that works.
I hope you can help me to find a quickly way to fix it (maybe hacking the library) and add the multilanguage support in next versions or you can tell me how to configure the library to work in spanish without troubles.
Thanks in advance.