I tried every available type and each time I got a different and weird error. Here is a snippet:
ftpClient.ControlEncoding = Encoding.UTF8;
ftpClient.Connect(...);
ftpClient.Login(...);
string[] ftpFiles = ftpCliente.Dir("");
for (int i = 0; i < ftpFiles.Length; i++)
{
DateTime x = ftpClient.ModTime(ftpFiles[i]);
}
With no ControlEncoding declaration, the ftpFiles array gives me the name of the files already with the missing accents, so when accessing ModTime(ftpFiles[i]) I receive the error "The system cannot find the file specified"
With UTF8 declaration, I get a "USER xxx: command not understood"
With UTF7 declaration, "The system cannot find the file specified"
UTF32, "Unexpected null reply received"
am I doing it right?