Are you sure that the server supports non-ASCII characters? Standard FTP does not, but many servers support some form of extended ASCII. The problem is that there are many different forms of extended ASCII.
Try logging into the server using a command-line FTP program, such as Microsoft's ftp.exe, and do a DIR to see what the server is returning. Also, if possible, log into the server directly (i.e. not using FTP) and get a directory listing of the actual file-system to see what the actual name of the directory is.
Finally, compile edtFTPnet in debug mode and set a break-point in FTPClient.Dir(string,bool) as shown with ** below:
// a normal reply ... extract the file list
string replyCode = lastValidReply.ReplyCode;
if (!replyCode.Equals("450") && !replyCode.Equals("550") && !replyCode.Equals("226"))
{
// get a character input stream to read data from
Encoding enc = controlEncoding == null ? Encoding.ASCII : controlEncoding;
** StreamReader input = new StreamReader(data.DataStream, enc);
// read a line at a time
ArrayList lines = new ArrayList(10);
When you reach the breakpoint, see what enc.EncodingName is. It should be whatever you set FTPClient.ControlEncoding to.
I just realized that you're using FTPClient rather than FTPConnection. Please use the latter since this is the interface we're maintaining. The FTPClient class will be obsoleted soon.
- Hans (EDT)