On Fri, 2003-03-28 at 09:41, Axel wrote:
> hi
> I m trying to open and read file which contains accentued characters 
> like éèùà
> so
> I open a file, with GIOChannel and read the strings
> but what is the function to get the encoding ?
> I didn' t found it in API
> I have seen call to convert to utf8 but it needs the original encoding 
> from the string, and I didn' t found how to get it.
> Someone could help me ?

How can GLib know this? 

You can use g_get_charset() to find out the encoding of the
user's locale, but that doesn't necessarily correspond to
the encoding of a particular file on disk.

Regards,
                                         Owen


_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to