----- System Info -----
(‘Linux’, ‘2.6.35-28-generic’, ‘#49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011’, ‘x86_64’, ‘’)
----- Details -----
File “/usr/local/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py”, line 5063, in init
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 12: ordinal not in range(128)
Most likely xmlFilename is a string that contains non-ascii characters, and so it can't be converted to unicode using the default encoding. if you are able to determine somehow what the source encoding is then you can convert it to unicode yourself using that encoding before passing it to wx.PyTextDataObject and avoid this error.
···
On 10/15/11 5:07 AM, King wrote:
----- Environment -----
wxPython 2.8.10.1
----- System Info -----
('Linux', '2.6.35-28-generic', '#49-Ubuntu SMP Tue Mar 1 14:39:03 UTC
2011', 'x86_64', '')
----- Details -----
File
"/usr/local/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line
5063, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12:
ordinal not in range(128)