Terry Reedy wrote: > On the contrary, to me, the point of base64 is to encode bytes into a > subset of bytes more or less guaranteed to not get mangled during > transport.
Yes, and the way it goes about it is to map the binary data to a sequence of characters, the reasoning being that most such channels can at least encode those characters somehow, because they're designed for the purpose of sending text. > That these safe bytes correspond to ascii chars They only correspond to ASCII character *codes* when the channel in question is designed to transmit text encoded in ASCII. If the channel were designed to transmit text encoded in EBCDIC or some other way, then ASCII codes would likely get mangled just as badly as raw binary data. -- Greg _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
