using IdFTP(INDY 10) to download files with russian letters

Giganews Newsgroups
Subject: using IdFTP(INDY 10) to download files with russian letters
Posted by:  tricky (notric…@bk.ru)
Date: 27 Mar 2008

Hi friends!
I've encountered a problem, while using TIdFTP (INDY 10.2.3) to download files from the FTP server.
Problem:
  When I got the file list (.DirectoryListing...) from the FTP current dir, then I start to retrieve filenames in cycle  "For .. to .. do". While the name of file is still english - it's ok, but when appears filename in russian letters, the class raises Exception: "Can't find specified file <filename.ext>". Moreover, shown filename has some letters missed, and always missed the last letter in russian alphabeth (its 255 in ASCII code). But instead of this letter, i use it upper case symbol - its ok.

What's the point?
Thanks and sorry for too long text.

Replies