Hi there, I've tried searching the forums for my solution, but I can't seem to find out whats wrong.
I've changed the encoding for the FTPConnection:
FTPConnection.DataEncoding = System.Text.Encoding.UTF8
I've tried:
FTPConnection.DataEncoding = System.Text.Encoding.Unicode
FTPConnection.DataEncoding = System.Text.Encoding.GetEncoding("Windows-1252")
FTPConnection.DataEncoding = System.Text.Encoding.GetEncoding("ISO-8859-1")
With no success, the filenames have Latin characters in them and on the server the letters are there, but when I use:
For Each file As EnterpriseDT.Net.Ftp.FTPFile In FTPConnection.GetFileInfos()
Debug.Print(file.Name)
Next
The letters are missing, like it just strips them from the name completely. Why isn't the encoding holding? I've connected with Filezilla Client and the directory listing from the server is fine, as Filezilla Client shows them. It just seems that setting the property for FTPConnection.DataEncoding isn't sticking.
Any ideas?