Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1.2k views
in .NET FTP by (120 points)
hi, i test edtftpnet/free in win7 (chinese edition) with serv-U.

there are files and folders whose names contain chinese character in ftp direction.

my code:

ftp.CommandEncoding = Encoding.GetEncoding( "gb2312" );
string[] files = ftp.GetFiles();

all string in files[] shows all right.

however, when i want

ftp.ChangeWorkingDirectory("test"); // ok
ftp.ChangeWorkingDirectory("??"); // Reply 501 Syntax error in parameters or argument.

i read source code, maybe the direction not encode when send command?

1 Answer

0 votes
by (162k points)
Try a different encoding, e.g. UTF-8.

Categories

...