Re: question about encoding
- From: Owen Taylor <otaylor redhat com>
- To: Axel <axel azerty netcourrier com>
- Cc: gtk-list <gtk-list gnome org>, gtk-app-devel-list gnome org
- Subject: Re: question about encoding
- Date: 28 Mar 2003 09:58:58 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]