Re: Invalid UTF8 string passed to pango_layout_set_text()




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 the
error to see what the problem is.  Per the documentation, any of the
errors from the enum GConvertError may occur:

http://library.gnome.org/devel/glib/unstable/glib-Character-Set-Conversion.html#GConvertError


Steve




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