[issue39380] ftplib uses latin-1 as default encoding

Sebastian G Pedersen report at bugs.python.org
Sat Jan 25 09:03:45 EST 2020


Sebastian G Pedersen <sebastian.g.pedersen at gmail.com> added the comment:

Thank you for the feedback.

I will elaborate a little bit on the reasons and thoughts behind the pull request:
Since RFC 2640, the industry standard within FTP Clients is UTF-8 (see e.g. FileZilla here: https://wiki.filezilla-project.org/Character_Encoding, or WinSCP here: https://winscp.net/eng/docs/faq_utf8).

Given this, I believe the majority of the users that have not investigated the code wrongly assumes UTF-8 encoding for ftplib as well (as it is now).

I am new to contributing, and not sure, how much deprecation warnings are used (I simply followed the previous encoding change on ftplib), so I will change it based on the feedback. However, shouldn't it be a FutureWarning, so it will be reported by default at initialisation?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39380>
_______________________________________


More information about the Python-bugs-list mailing list