durusmail: quixote-users: Quixote 2.0a1, Unicode, Python 2.3
Quixote 2.0a1, Unicode, Python 2.3
2004-10-21
Quixote 2.0a1, Unicode, Python 2.3
Neil Schemenauer
2004-10-21
I just noticed today that Python 2.3 has some unicode bugs that
affect Quixote 2.0a1.  If you want to use unicode you will need to
use Python 2.4.  It may possible to work around the bug but so far I
have not figured out how.  Here's an example of the bug:

>>> class A:
....   def __str__(self):
....     return u'\u1234'
....   def __unicode__(self):
....     return u'\u1234'
....
>>> u'%s' % A()
Traceback (most recent call last):
  File "", line 1, in ?
UnicodeEncodeError: 'ascii' codec can't encode character u'\u1234' in position
0: ordinal not in range(128)

It's surprising to me that no one noticed this sooner.

  Neil

reply