RE: Invalid UTF String



The string isn't UTF-8 encoded and the pango function you're using needs
the data to be in UTF-8. printf is a standard library function and would
need the string in host encoding.

Look for functions to convert a host encoded string to UTF-8 and then
pass that to the pango API.

-vc 

-----Original Message-----
From: gtk-app-devel-list-bounces gnome org
[mailto:gtk-app-devel-list-bounces gnome org] On Behalf Of shibu
alampatta
Sent: Monday, September 04, 2006 2:15 PM
To: gtk-app-devel-list gnome org
Subject: Invalid UTF String

hi all
 I' m using a combo box, reading text from a Sqlite database table, and
trying to add to the combo dropdown list. I'm gettting the warnig
"Pango-Warning: Invalid UTF String passed to pango_lay_out_set_text()",
and
the text is being dispalayed in some picture like characters.
but if i prints the characters using printf() i'm getting it properly on
the
terminal. any help pls....





Thxs in advance...
with regards
Shibu
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]