Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

bzcodes

Posts

1

Joined

Wed Sep 10, 2014 1:25 pm

error happened when direction name contains chinese characte

by bzcodes » Wed Sep 10, 2014 8:33 pm

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?
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: error happened when direction name contains chinese char

by support2 » Wed Sep 10, 2014 9:35 pm

Try a different encoding, e.g. UTF-8.

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron