Hi, this is what I get in Terminal: >>> import wx >>> print wx.version() 2.8.12.1 (msw-unicode)
>>> import locale >>> locale.setlocale(locale.LC_ALL, "") 'Spanish_Peru.1252' >>> Thanks. El 05/03/2012 02:48 p.m., Paul McNett escribió: > On 3/5/12 11:18 AM, Paul McNett wrote: >> On 3/5/12 9:15 AM, STyler wrote: >>> Hello, I tested with two sources that have those characters with >>> accents: Courier and Arial. >>> lbl.FontFace = "Courier" >>> lbl.FontFace = "Arial" >>> But the error persists, and tested in the demo of a textbox I get a message: >>> >>> File "C:\dabo\demo\samples/dTextBox.py", line 56, in onTextKeyCharcd, ch >>> = evt.keyCode, evt.keyChar >>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 0: >>> ordinal not in range(128) >> >> I see you are on Windows. I bet the default locale isn't UTF8. Please open a >> terminal >> window, type "python<enter>" and then: >> >> >>> locale.setlocale(locale.LC_ALL, "") >> >> On my Mac, I get: >> 'en_US.UTF-8' >> >> On my Linux, I get: >> 'en_US.UTF-8' >> >> What do you get? > > Also, while in the Python interpreter, type: > > >>> import wx > >>> print wx.version() > > On my Mac, I get: > '2.8.12.1 (mac-unicode)' > > On Linux, I get: > '2.8.12.1 (gtk2-unicode)' > > What do you get? > > Paul > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
