Hi,
I'm using edt free version.
I'm in trouble to upload files when filename (only filename) containing special characters as cyrillic characters.
Here is my code :
FTPClient instanciation :
// Instanciation
FTPClient ftpClient = new FTPClient();
// FTP port
ftpClient.ControlPort = port;
// FTP Host
ftpClient.RemoteHost = host;
// Connection Mode
ftpClient.ConnectMode = FTPConnectMode.PASV;
// Control Encoding
ftpClient.ControlEncoding = System.Text.Encoding.GetEncoding("ISO-8859-1");
//Connection
ftpClient.Connect();
//Login
ftpClient.Login(userName, userPwd);
ftpClient.TransferType = FTPTransferType.BINARY;
File upload :
ftpClient.Put(filePath, remoteFileName);
This code works fine when the filename contains only european characters (special characters like ? ? ? ?... are ok).
The problem happens when the filename contains cyrillic characters like пфФЦцчшщ.txt.
I tried with different encodings:
With ISO-8859-1 encoding : the file is not transfered (error : ???????.txt invalid synthax)
WIth ISO-8859-5 encoding : the file is transfered but remote name is ????????.txt
With UTF-8 connection is impossible (error 'USER EU\ftpuser': command not understood (code=500), the debugger displays a square before USER as if there is a special character at the begining...)
Any ideas?
Thanks in advance...