Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I use Unicode (or other format) strings in my PyGTK application, or, why do I get a UTF-8 warning when using a string?

0
Posted

How can I use Unicode (or other format) strings in my PyGTK application, or, why do I get a UTF-8 warning when using a string?

0

If your string is a Python unicode (u”some string”) object, you needn’t do anything else, PyGTK will happily use it. If, however, your string is an str (“some string”) object, PyGTK requires it to be in UTF-8.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123