Re: UTF-8 output
Alexander Lukyanov <[email protected]> Thu, 7 Jan 2016 21:42:09 +0300
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CANnoEwqC=_pwqiQ6Zfhym1bP9mD3w4nYtCY3wfMobgSA8Oxa1w@mail.gmail.com> |
Probably you run lftp with a latin-1 locale. Try to set LC_ALL=en_US.UTF-8 (for example). Alternatively you can force a local character set in lftp by "set file:charset UTF-8". 2016-01-07 20:04 GMT+03:00 Phyks <[email protected]>: > 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 that lftp is returning latin-1 > encoding, instead of UTF-8, for the directory listings. > > Are you aware of such a problem? I did not find any way to force lftp to > use UTF-8. > > Thanks! > > > _______________________________________________ > lftp mailing list > [email protected] > http://univ.uniyar.ac.ru/mailman/listinfo/lftp > > -- Alexander. _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp