[Python-3000] PEP 3138- String representation in Python 3000

Antoine Pitrou solipsis at pitrou.net
Thu May 22 13:58:10 CEST 2008


M.-A. Lemburg <mal <at> egenix.com> writes:
> 
> It's all a matter of perspective. You can say you're encoding Latin-1
> to Unicode, or you can say your encoding Unicode to Latin-1.

Except that Latin-1 is an encoding while Unicode is not. So I don't see how you
can encode to Unicode. Of course you can encode to UTF-8, UTF-16, etc. - which
/are/ encodings (and, in this case, Python returns you a bytes object :-)).

Antoine.




More information about the Python-3000 mailing list