[Python-Dev] Should ftplib use UTF-8 instead of latin-1 encoding? (original) (raw)
rdmurray at bitdance.com rdmurray at bitdance.com
Fri Jan 23 20:35:01 CET 2009
- Previous message: [Python-Dev] Should ftplib use UTF-8 instead of latin-1 encoding?
- Next message: [Python-Dev] Should ftplib use UTF-8 instead of latin-1 encoding?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 23 Jan 2009 at 21:55, Oleg Broytmann wrote:
On Fri, Jan 23, 2009 at 10:15:18AM -0800, Brett Cannon wrote:
If I remember correctly something along Martin's comment about 7-bit clean is needed, but some servers don't follow the standard, so I swapped it to Latin-1. But that was so long ago I don't remember where I gleaned the details from in the RFC. If I misread the RFC and it is UTF-8 then all the better to make more of the world move over to Unicode. I don't know any server that encode file names in any way. All servers I know just pass filenames as is, 8-bit; some that implement stricter RFC-959 mangle chr(255), but that's all. One can encounter a server that stores files in a number of different encodings.
Given that a Unix OS can't know what encoding a filename is in (*), I can't see that one could practically implement a Unix FTP server in any other way.
--RDM
(*) remember the earlier extensive discussion of this when the issue of listdir() ignoring non-encodable filesnames came up?
- Previous message: [Python-Dev] Should ftplib use UTF-8 instead of latin-1 encoding?
- Next message: [Python-Dev] Should ftplib use UTF-8 instead of latin-1 encoding?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]