Invalid UTF8 string passed to pango_layout_set_text()
- From: "Victor Mierla" <lists bumerang ro>
- To: gtk-list gnome org
- Subject: Invalid UTF8 string passed to pango_layout_set_text()
- Date: Tue, 9 Dec 2003 22:29:22 +0200
Hi people
I'm writing a program that uses GnomeIconList.
It has i18n support .
in po file charset is declared as UTF-8
When this line is reached:
gnome_icon_list_append_pixbuf ( GNOME_ICON_LIST (icon_list) , iso_pixbuf,XNERO_ICONDIR "/cpl_new_cd_iso.png","CD-ROM (ISO)");
the next error appears:
Invalid UTF8 string passed to pango_layout_set_text()
i read all the mails containing this error message but i can't get it right.
I tried it like this:
gnome_icon_list_append_pixbuf ( GNOME_ICON_LIST (icon_list) , iso_pixbuf,
g_filename_to_utf8(XNERO_ICONDIR"/cpl_new_cd_iso.png",-1,NULL,NULL,NULL),
g_locale_to_utf8 (_("CD-ROM (ISO)"),12,&bytes_read,&bytes_written,NULL));
or
gnome_icon_list_append_pixbuf ( GNOME_ICON_LIST (icon_list) , iso_pixbuf,XNERO_ICONDIR "/cpl_new_cd_iso.png",latin1_to_utf8("CD-ROM (ISO)"));
where latin_to_utf8 is a function suggested by HAvoc in a mail.
Nothing worked :-(.
Could you help me please??
I'm using Gnome 2.4.0 from GARNOME distribuition,RH9 standard distrib.
Thanks
--
RUK;
#!/bin/ssh
#The Unix Guru's View of Sex
unzip ; strip ; touch ; grep ; finger ; mount ; fsck; more ; yes ; umount ; sleep
Acest email a fost trimis din interfata web http://www.bumerang.ro
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]