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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -