unicode strings and strings mix

Roman Suzi rnd at onego.ru
Tue Jun 18 00:51:11 EDT 2002


Is there any way to define "default" encoding so the following error
will not happen?

>>> unichr(0x3345) + "вавав"
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
UnicodeError: ASCII decoding error: ordinal not in range(128)
>>> unichr(0x3345) + "babab"
u'\u3345babab'
>>>


Sincerely yours, Roman Suzi
-- 
\_ Russia \_ Karelia \_ Petrozavodsk \_ rnd at onego.ru \_
\_ Monday, June 17, 2002 \_ Powered by Linux RedHat 7.2 \_
\_ "I have a rock garden. 3 of them died last week." \_






More information about the Python-list mailing list