Unicode question

Gerhard Häring gh at ghaering.de
Thu Jul 17 11:47:30 EDT 2003


 >>> u"äöü"
u'\x84\x94\x81'

(Python 2.2.3/2.3b2; sys.getdefaultencoding() == "ascii")

Why does this work?

Does Python guess which encoding I mean? I thought Python should refuse 
to guess :-)


-- Gerhard





More information about the Python-list mailing list