wxPython / Mac / unicode

isthar tkrzywicki at gmail.com
Wed Jan 4 11:34:45 EST 2006

I can not present unicode string in wxPython application

utf-8 string: SomeProductName®

here is how I converted it from iso8859-18
reference = unicode (reference,'iso8859_15').encode('utf-8')

Traceback (most recent call last):
  File "/Users/isthar/Documents/Projects/pyEdipEditor/MainFrame.py",
line 417, in OnSelectGen
    self.textRef.SetValue( reference )
line 1638, in SetValue
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
25: ordinal not in range(128)

As You see I have unicode version of wx ... so I am in dead end now.

please, ... some clue ... :(

gr, tomek

More information about the Python-list mailing list