python3 - the hardest hello world ever ?
"Martin v. Löwis"
martin at v.loewis.de
Thu Oct 16 04:21:36 EDT 2008
> Still, I wished it were possible call sys.setdefaultencoding
> at the very beginning of a script.
>
> Why isn't that possible?
The default encoding was used when combining byte-oriented
text and unicode-oriented text. Such combination is no longer
supported, hence the notion of a default encoding
has disappeared. You have to perform conversion between bytes
and strings now explicitly.
Regards,
Martin
More information about the Python-list
mailing list