> 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 -- http://mail.python.org/mailman/listinfo/python-list