Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.5k views
in .NET FTP by (200 points)
Hello,everybody:
I am using edtFTPnet/Free ,but when I list a directory with Chinese character,it always return the English character without Chinese Character,
I try to change the DataEncoding attribute to Unicode、UTF8 and so on,howeve,it still does not work?
Please help me,Thanks very much!

Development Environment:VS2008,.Net Framework3.5
OS:Windows7

3 Answers

0 votes
by (162k points)
Have you tried big5? Encoding.GetEncoding("big5")
0 votes
by (200 points)
Thanks for your reply.
It still does not function with Encoding.GetEncoding("GB2312")、Encoding.GetEncoding("GBK")、Encoding.GetEncoding("Big5")。
My test programme is simple,like this:

ftpConnection1.DataEncoding = Encoding.GetEncoding("GB2312");
ftpConnection1.Connect();
string[] files = ftpConnection1.GetFiles();
listBox1.Items.AddRange(files);
ftpConnection1.Close();
it returns result but all Chinese character is disappeared.
0 votes
by (200 points)
It works !
Set
tpConnection1.CommandEncoding = Encoding.GetEncoding("GB2312");

Categories

...