Unicode string output

Alexander Kostyrkin avkost66 at f4.dion.ne.jp
Sun Jan 21 11:19:51 EST 2001


Surprisingly printing a unicode string that contains a Japanese kanji
character raises an exception
For example

    print u"\u55f4"
UnicodeError: ASCII encoding error: ordinal not in range(128)

Is there any way to overcome the problem?

Sasya





More information about the Python-list mailing list