[pygtk] Unicode String

Michel Thadeu michel_ts at yahoo.com.br
Mon Jan 26 08:35:04 WST 2004


Hi guys!

I want to know suggestion on how to convert a string to unicode... The
gtk requires unicode strings on the widgets, now either I define the
string as u'some string' or I define an attribute enconding
(self.enc='iso8859-1') and for each string I use unicode(string,
self.enc)... To access the string I use string.decode(self.enc)...

Is this the best way to convert string to unicode?

thanks for all help!

=====
--
Michel Thadeu Sabchuk
Curitiba/PR

______________________________________________________________________

Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis!
http://br.geocities.yahoo.com/


More information about the pygtk mailing list