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?

Paul

_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/4f551193.3030...@ulmcnett.com

Reply via email to