Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in .NET FTP by
Sorry for my bad english. But I have problem. When i received list of files on some ftp, the russians letters are cuting (deleted) from strings in list. What i can do with this problem?

3 Answers

0 votes
by
Sorry for my bad english. But I have problem. When i received list of files on some ftp, the russians letters are cuting (deleted) from strings in list. What i can do with this problem?


The problem solving is to ude
System.Text.Encoding collection
in method
public string[] Dir(string dirname, bool full)
in line
StreamReader reader = new StreamReader(GetDataStream());


For example:
StreamReader reader = new StreamReader(GetDataStream(), Encoding.Default);
0 votes
by
i'm was trying to recompile edFTPnet ver 1.1.8 with changes in code, like Kaif said. I have some erros when compile
C:\...edtftpnet-1.1.8\src\net\ftp\FTPControlSocket.cs(342): 'System.Net.IPAddress.Address' is obsolete: 'IPAddress.Address is address family dependant, use Equals method for comparison.'

C:\...edtftpnet-1.1.8\src\net\ftp\FTPFileFactory.cs(104): The type or namespace name 'VMSFileParser' could not be found (are you missing a using directive or an assembly reference?)

C:\...\edtftpnet-1.1.8\src\net\ftp\FTPFileFactory.cs(104): The type or namespace name 'VMSFileParser' could not be found (are you missing a using directive or an assembly reference?)


I have problem with russian file names in fucntion Dir(), when try list files from ftp.

How i can solve the problem with russian file name??

P.S. sorry for bad english :) i'm from Ukraine
0 votes
by
I solve my problem. I find file VMSFileParser.cs, and add to project. After change code and recompile component correctly working with russian file name.

Categories

...