On May 18, 2011, at 6:21 PM, [email protected] wrote:

> Hi!  I'm a total novice to Dabo and (almost) to Python.

        Welcome to both Dabo and Python!

> I'm looking for a new tool to make backend programs, I just to use high level 
> 4GL languages, like Progress or Windev.
> I just started to read the PyCon tutorial and play with the demo. Looks great!
> 
> My question is simple. I have seen a difference between dTextBox and 
> dEditBox: dTextBox in the demo doesn't allow me to type accented vowels in it 
> (returns an error), while dEditBox works fine. The error is:
> 
> File "C:\Projects\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)
> 
> I am trying to localize my apps in spanish, so it's not a lot of change, but 
> the range of chars is 256.
> In my Python novice code I always write this line: # -*- coding: latin-1 -*- 
> (I don't know if it helps).

        Hmmm.. I just tried entering some accented characters in the demo, and 
it worked fine in both dTextBox and dEditBox. Can you tell me your version 
information? You can get it by running the app, selecting the Help/About menu 
item, and then clicking the Copy button. You can then paste the info into your 
reply.

> I'd like to know if this little problem is difficult to -fix? (It doesn't 
> seem to me, because dEditBox is ok !).

        It might already be fixed - we have a few non-USA people who have been 
a great help in moving our unicode support forward.

> Thanks in advance, and excuse my bad english. 

        
        Your English is fine!



-- Ed Leafe



_______________________________________________
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]

Reply via email to