Re: Invalid UTF8 string passed to pango_layout_set_text()
- From: Stephen Fisher <stephentfisher yahoo com>
- To: Naveen Kumar <naveen galieosoft com>
- Cc: gtk-app-list <gtk-app-devel-list gnome org>
- Subject: Re: Invalid UTF8 string passed to pango_layout_set_text()
- Date: Fri, 7 Dec 2007 23:26:53 -0700
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]