Ok, thank you, Hraban. I've already checked that dTextBox works fine outside the dabo demo; I'm worried about it no more. I'll try to play with your solution, but my priority now is to keep learning Dabo.
Greetings melkarth -------------------------------------------------- From: "Henning Hraban Ramm" <[email protected]> Sent: Friday, May 20, 2011 7:58 AM To: "Dabo Users list" <[email protected]> Subject: Re: [dabo-users] Reenv: Problem in Dabo demo > Am 2011-05-19 um 15:48 schrieb melkarth0: > >> As I said to Hraban, I have tested my programs with UTF-8 and they >> also worked ok, I will use this coding in them from now on, instead >> of latin-1. >> I'm using an unicode wxPython, and dEditBox runs fine. I think it >> must be something inside dTextBox. >> When I enter this lowercase letter: http://en.wikipedia.org/wiki/%C3%81 >> , I get: >> >> File "C:\Python25\DABO\demo\samples/dTextBox.py", line 56, in >> onTextKeyChar >> cd, ch = evt.keyCode, evt.keyChar >> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position >> 0: >> ordinal not in range(128) >> >> By the way, I'm only using DaboDemo.py now, not mixing with other >> python >> code. > > Ok, sorry I didn’t test yesterday - I can confirm the error in my > environment (latest SVN): > Platform: Mac > Python Version: 2.6.4 on darwin > Dabo Version: Version 0.9.3; Revision 6589M > UI Version: 2.8.11.0 on wxMac > > Just making the strings in the handlers unicode (Melkart: enter a 'u' > in front of the quotes) fixes the problem. > > > Greetlings from Lake Constance! > Hraban > --- > http://www.fiee.net > https://www.cacert.org (I'm an assurer) > > > > > _______________________________________________ > 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] > _______________________________________________ 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/49DFDBB1998E4636A1C4A4C7645E77C2@Informatica2
