Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.7k views
in .NET FTP by (120 points)
I got an issue with file name returned from FTPConnection.GetFileInfos(), i think it should be the problem of encoding.

The file name is Chinese Simplified (GB2312), when i get it, all characters are gone.

I tried DataEncoding and TransferType settings, it doesn't work. Please pay attention, i am saying file name encoding, not the file. the file returned is OK, but the GB2312 file name is gone.


Appreciate if any one can help!!

1 Answer

0 votes
by (162k points)
Try

ftp.DataEncoding = System.Text.Encoding.GetEncoding(936);

Categories

...