wxPython and Croatian characters

Jason Scheirer jason.scheirer at gmail.com
Mon Feb 16 15:32:39 EST 2009


On Feb 16, 10:58 am, vedrandeko... at gmail.com wrote:
> Hello,
>
> I have problem with configuring my wxPython script to work with
> Croatian characters like:  ð,¹,¾,è,æ.
> Here is my simple script without wxPython (this script works):
>
>       # -*- coding: utf-8 -*-
>       s = "hello normal string ð¹¾æè"
>       print s
>
> ..here is my snippet with wxPython:
>
>     text = wx.StaticText(self, -1,"Matièni broj",(0,100)) # in this
> example,we have character "è"
>
> ...when I run this text, it looks something like:  "Mati",some weird
> characters ,and "ni"
>
> Regards,
> John

You may be using an ANSI build of wxWidgets instead of a unicode one.
Make sure to enable Unicode when you run ./configure, or if in
Windows, uninstall and download the win32-unicode version of the
wxPython you want.



More information about the Python-list mailing list