Re: Invalid UTF8 string passed to pango_layout_set_text()

2007-12-08 Thread Tor Lillqvist
I am trying add contents to clist from a file which contains filenames, I asume this is on Linux or some other POSIX system? File names in POSIX are not necessarily in any enforced consistent character set and/or encoding. File names are just a string of bytes. Especially on older file systems

Re: Invalid UTF8 string passed to pango_layout_set_text()

2007-12-07 Thread Stephen Fisher
On Sat, Dec 08, 2007 at 11:45:44AM +0530, Naveen Kumar wrote: I tried to convert the string which read from the file utf8 format using g_locale_to_utf8 (string, -1 , NULL, NULL, NULL); but it is returning NULL string ... Try passing a GError array as the final parameter then print out

Invalid UTF8 string passed to pango_layout_set_text()

2007-12-07 Thread Naveen Kumar
Hi all, I am trying add contents to clist from a file which contains filenames, It is unable display the contents which i m expecting it is giving a warning WARNING **: Invalid UTF8 string passed to pango_layout_set_text