wxPython and Unicode and widgets
Scott David Daniels
Scott.Daniels at Acm.Org
Tue Jan 1 11:20:02 PST 2008
Kevin Ollivier wrote:
> BTW, a while back ActiveGrid asked me to write up some help for
> understanding/working with Unicode better in their wxPython app, and
> they gave me permission to make the document public. It's available
> here: http://kevino.theolliviers.com/python-unicode.html
>
> I'd be happy to clean it up and update it if you think it would be
> helpful. I do think we should have some sort of 'migration' document for
> people that makes this process a little less scary. I think the key is
> to help people get familiar with the concept of encodings and break down
> the approach for Unicode-enabling an app into concrete steps one can
> follow.
For your cleanup:
In the cited page, you assert "(i.e. in ASCII, the binary number 42
translates to the letter 'a'.)"
chr(42) == '*'
chr(0x42) == 'B'
chr(042) == '"'
ord('a') == 97 == 0x61 == 0141
-Scott
More information about the wxpython-users
mailing list