Re: FTP filename escaping

2006-05-11 Thread Edward Elliott
Serge Orlov wrote: > Almad wrote: >> OK, after some investigation...problem is in non-latin characters in >> filenames on ftp. >> >> Yes, users should be killed for this, > > It's futile, users will always find a way to crash you program :) And > you can't kill them all, there are too many of them

Re: FTP filename escaping

2006-05-11 Thread Serge Orlov
Almad wrote: > OK, after some investigation...problem is in non-latin characters in > filenames on ftp. > > Yes, users should be killed for this, It's futile, users will always find a way to crash you program :) And you can't kill them all, there are too many of them. > but I would like to handle

Re: FTP filename escaping

2006-05-11 Thread Almad
OK, after some investigation...problem is in non-latin characters in filenames on ftp. Yes, users should be killed for this, but I would like to handle it somehow... I can't figure out how it's handled by protocol, ftplib seems to just strip those characters... Thank You, Almad -- http://mai

FTP filename escaping

2006-05-11 Thread Almad
Hello, I feel ashamed, but my google-fu betrayed me again. How do I escape filenames when using ftplib? I'd like to download it and upload on ftp again... toDown = self.ftpMaster.nlst() for fileDown in toDown: f = tmpfile() # download self.ftpMa