[lftp] UTF-8 output

2016-01-07 Thread Phyks
Hi, I am using lftp from a Python script, calling it through `subprocess.run`. Everything should be UTF-8 (shell, lftp is sending OPTS UTF-8 to the server) and my Python script is using UTF-8, sends UTF-8 to lftp on the stdin and expect UTF-8 on its stdout. But for some unknown reason, it seems t

Re: [lftp] UTF-8 output

2016-01-08 Thread Phyks
locale under subprocess.run? Can the subprocess itself > recode the output? > > чт, 7 янв. 2016, 21:52, Phyks : > >> I did try to `set file:charset UTF-8` without any success. >> >> From the shell from which I run my Python script: >> >> ``` >> % locale ch

Re: [lftp] UTF-8 output

2016-01-10 Thread Phyks
could monkey patch above it, but I am feeling like either this is a bug or a misuse of lftp from my side. Thanks! Le 09/01/2016 01:57, Phyks a écrit : > I am now pretty much sure the problem comes either from the lftp side or > the FTP itself. > > Actually, I used the same script

Re: [lftp] UTF-8 output

2016-01-12 Thread Phyks
: > What is the correct name of that "(2014-10-15) Ã%89cocups" directory on the > server side? What is printed by "ls" and "cls" lftp commands if invoked by > hand? > > 2016-01-10 18:09 GMT+03:00 Phyks : > >> Hi, >> >> I finally manag