Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.8k views
in .NET FTP by (163k points)
Filezilla server supports the use of UTF8 pathnames and filenames.

However if you use:

connection.CommandEncoding = Encoding.UTF8;

you find this error in the Filezilla logs:

220 Please visit http://sourceforge.net/projects/filezilla/
?USER javaftp

The first three characters are the byte order mark (BOM) of UTF, and Filezilla doesn't like them at the start of the stream. To get rid of them, simply create a UTF8 encoding without a BOM:

connection.CommandEncoding = new UTF8Encoding(false);

and all should be fine.

Please log in or register to answer this question.

Categories

...