Python: Certain unicode characters do not display correctly -
i trying set label of gui-element display greek letter python.
str(u'\u0054'.encode('utf8'))
correctly produce unicode character 't', unicode number 0054.
writing str(u'\u03b6'.encode('utf8'))
not display greek letter small zeta this thing instead.
i tried writing str(u'\uceb6'.encode('utf8'))
(ceb6 utf-8 encoding of character want), got similar, strange looking character wasn't greek letter zeta.
according this site character available in common fonts.
might gui-toolkit uses strange font? using fox toolkit.
any appreciated.
edit: trying create text label fxlabel(parent, string)
supply string str(u'\u03b6'.encode('utf8'))
. , mentioned, supplying string unicode number of capital t produce expected label.
your output encoding wrong. make sure terminal correctly configured utf-8 output.
if interpret (rather muddy) image correctly, ce b6 being displayed ζ consistent 1 of number of common western 8-bit encodings.
Comments
Post a Comment