Differing behavior in IdFTP between .NET and Win32 with Indy10 - High Ascii cha

Giganews Newsgroups
Subject: Differing behavior in IdFTP between .NET and Win32 with Indy10 - High Ascii cha
Posted by:  Carl Hungerford (chungerfo…@intoknow.com)
Date: Thu, 22 Sep 2005

While using Indy10 in both .Net and Win32, both will list a directory that
includes filenames with characters such as '±' in them. When it comes to
performing a GET with the following snippett....

  IdFTP1.Host := Edit1.Text;
  IdFTP1.Username := 'anonymous';
  IdFTP1.password := 'anonymous';
  if not  IdFTP1.Connected then
    IdFTP1.Connect;
  IdFTP1.Get('001±ASSY.mod','C:\data\testfile.tmp',true);

the .Net version will fail giving the error that the filename, directory
name or volume label syntax is incorrect. In the error the '±' is replaced
with a '?' and no file is transferred. The same code, using the same
filenames, works perfectly in under Win32

If there are any suggestions, or workarounds, they would be much
appreciated.

Thanks,
Carl Hungerford
IBaseT

Replies