Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

LiFo

Posts

2

Joined

Sat Feb 19, 2005 3:24 am

Location

Dennmark

Problem listing dir with ??? in the name

by LiFo » Sat Feb 19, 2005 3:27 am

well as the topic says
when i lidt a dir with an ? ? ? in the character is missing
so i cant change to that dir ??
no avatar
User

LiFo

Posts

2

Joined

Sat Feb 19, 2005 3:24 am

Location

Dennmark

fixt the problem with non ascii charaters

by LiFo » Sat Feb 19, 2005 10:40 pm

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);
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: fixt the problem with non ascii charaters

by support2 » Sun Feb 20, 2005 1:34 am

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

Who is online

Users browsing this forum: No registered users and 8 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign