[Tutor] Confirm that Python 2.6 ftplib does not support Unicode file names? Alternatives?

python at bdurham.com python at bdurham.com
Sat Jun 26 18:20:20 CEST 2010


Updating this thread for users searching the archives.

Additional commentary can be found in this thread I started on
Stackoverflow.com.
http://stackoverflow.com/questions/3120295/confirm-that-python-2-6-ftplib-does-not-support-unicode-file-names-alternatives

Gabriel Genellina added the following comment on Python-list:

According to RFC 2640, you should use UTF-8 instead. 
http://www.faqs.org/rfcs/rfc2640.html

The server software must be able to convert from file system encoding to
utf-8 and viceversa; check its configuration.

The stackoverflow thread mentioned above also contains a
workaround/ugly-hack if you need to use Unicode path/file names with
ftplib and/or a file server that does not support Unicode path/file
names.

Malcolm


More information about the Tutor mailing list