[Python-Dev] Re: PEP: Defining Python Source Code Encodings
M.-A. Lemburg
mal@lemburg.com
Wed, 18 Jul 2001 09:36:50 +0200
"Martin v. Loewis" wrote:
>
> > To be 8-bit clean it will have to use Latin-1 as fallback encoding
> > since this encoding assures the roundtrip safety (decode to Unicode,
> > then reencode).
>
> No, that is not true. Any other 8-bit encoding that has all code
> points assigned (e.g. Latin-2, or KOI8-R) would also give you full
> round-trip encoding.
True. Still, Latin-1 gives you the best performance and is also
compatible with the unicode-ecsape encoding which is currently in
use.
I'll add a note about this to the PEP.
Thanks,
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company: http://www.egenix.com/
Python Software: http://www.lemburg.com/python/