Exceptions and unicode messages

Tuomas tuomas.vesterinen at pp.inet.fi
Wed Mar 21 07:03:39 EDT 2007


This works:
 >>> raise StandardError(u'Wrong type')
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
StandardError: Wrong type

but don't in Finnish:
 >>> raise StandardError(u'Väärä tyyppi')
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
StandardError>>>
 >>>

Any solution in Python?

TV



More information about the Python-list mailing list