FAQ Index - Search - Recent Changes - Everything - Add entry

<< Previous Entry | FAQ Entry 4.19 | Next Entry >>

4.19. Can I pass strings of unicode instance to gtk or do I need to convert them to utf8?

No you don't have do manually convert your strings in utf8. PyGTK will do this for you.

    label.set_text(u'abc')
So the above is indeed valid and not only to labels but to any widget.

PyGTK FAQ Wizard | PyGTK Homepage | Feedback to faq at pygtk.org