I add some logs, to show folder name.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 8 六月 2006 11-42-23.746 : ---> LIST .
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 8 六月 2006 11-42-23.762 : 125 Data connection already open; Transfer starting.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(06-06-06 07:38PM <DIR> 965PreLaunch)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(05-30-06 03:23PM <DIR> eDM)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(06-06-06 07:33PM <DIR> eNetWorking)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(06-07-06 07:18PM <DIR> eng)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(06-02-06 12:12PM 42 index.htm)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(06-01-06 09:56AM <DIR> Intel_ICRT)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(05-10-06 12:18PM <DIR> scripts-include)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(05-11-06 10:46AM <DIR> site_twn)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(05-12-06 11:18AM <DIR> sites)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(05-26-06 12:32PM <DIR> twn)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(05-19-06 07:56PM <DIR> UploadTest)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(06-08-06 11:13AM <DIR> )
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 8 六月 2006 11-42-23.996 : 226 Transfer complete.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.996 : Found 12 listing lines
and the question is: it can't show Chinese folder name:
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 8 六月 2006 11-42-23.778 : lines.Add(06-08-06 11:13AM <DIR> )
I try "big5" and "950", both not work!
internal void InitStreams()
{
Stream stream = controlSock.GetStream();
/*
writer = new StreamWriter(stream, Encoding.GetEncoding("US-ASCII"));
reader = new StreamReader(stream, Encoding.GetEncoding("US-ASCII"));
*/
/*
writer = new StreamWriter(stream, Encoding.GetEncoding("big5"));
reader = new StreamReader(stream, Encoding.GetEncoding("big5"));
*/
writer = new StreamWriter(stream, Encoding.GetEncoding(950));
reader = new StreamReader(stream, Encoding.GetEncoding(950));
}