Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.3k views
in .NET FTP by (160 points)
well as the topic says
when i lidt a dir with an

2 Answers

0 votes
by (160 points)
the problem was in 2 palces

FTPClient.cs
line 2159

original code
StreamReader input = new StreamReader(data.DataStream)

changed code
StreamReader input = new StreamReader(data.DataStream,Encoding.Default);


FTPControlSocket.cs
line 252 and 253

original code
writer = new StreamWriter(stream, Encoding.GetEncoding("US-ASCII"));
reader = new StreamReader(stream, Encoding.GetEncoding("US-ASCII"));


changed code
writer = new StreamWriter(stream, Encoding.Default);
reader = new StreamReader(stream, Encoding.Default);
0 votes
by (162k points)
We might change the code to permit users to set the encoding.

Thanks for letting us know what worked - it isn't that easy for us to test non-English filenames

Categories

...