Pango error



Hi,

I have this error : 

** (gbibliogr:1405): WARNING **: Invalid UTF8 string passed to
pango_layout_set_text()

I guessed it's because I have accentuated letters. 
So must I convert all my strings via g_convert() ? 
Is there another easier way ? 

Because, for example, I have the following code :

doc_entry = g_list_append(doc_entry, g_convert(tmp, -1, "UTF-8",
"ISO-8859-1", read, written, NULL));

This code create a GList that I'append to a combo. And, with 'Di
Prétoro', There's a sigsegv. Hereby the result of gdb. So, what's the
problem with my use of gconvert ?

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1603)]
0x406eb02c in g_convert_with_iconv () from /usr/lib/libglib-2.0.so.0

Thanks,

Manu



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