"Gustavo J. A. M. " Carneiro <[EMAIL PROTECTED]> writes:
> On Dom, 2003-03-09 at 06:51, Jason Monroe Martin wrote:
> > My treeviews seem slow even on small tables compared to the clist in
> > pygtk6.x. and I get this error from some of the data (WARNING **:
> > Invalid UTF8 string passed to pango_layout_set_text()). Is this what is
> > slowing me down. I am new to locales and unicode and have not figured
> > out how to get rid of this error yet. Are there any settings that I can
> > use to speed them up.
>
> Well, you have to pass to gtk UTF-8 encoded strings only. If you are
> using non-ASCII sctrings (accented characters, for example) I suggest
> you use unicode string and convert to utf-8, like this:
> s = u'Th�oden'.encode('utf-8')
AFAICT, PyGTK 1.99 accepts unicode objects directly so you don't have to
convert to UTF8 explicitly. It seems to work in Sketch, anyway :)
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/