I have a set of filenames some of which have accented characters (typical Spanish and French accents), which my application can't find. It correctly downloads filenames without accents.
I was wondering if it's possible to use unicode somehow to query the FTP server differently, so that it's able to find the files?
Here's the code.
Code: Select all
put x into FtpFileName
if last char in FtpFileName is not in "abcdefghijklmnopqrstuvwxyz1234567890" then
delete last char in FtpFileName --this is to remove carriage return character at the end of the filename as it's stored in my SQL database, never been a problem before
end if
put URL FtpFileName into url ("binfile:" & LocalFileName) --ACTUAL FILE COPY command
put the result into tError
if tError is not empty then
put tError --no errors show up but it creates a 0 KB file with the correct filename including accents
end if