Re: libxml2 in gnome 1.4
- From: James Henstridge <james daa com au>
- To: Daniel Veillard <veillard redhat com>
- Cc: ERDI Gergo <cactus cactus rulez org>, Darin Adler <darin eazel com>, Miguel de Icaza <miguel ximian com>, Maciej Stachowiak <mjs eazel com>, gnome-hackers gnome org
- Subject: Re: libxml2 in gnome 1.4
- Date: Sat, 24 Mar 2001 17:14:30 +0800 (WST)
On Sat, 24 Mar 2001, Daniel Veillard wrote:
> Tell me in what encoding a gchar is. I can tell you that libxml
> uses xmlChar for this precise reason, it is an unsigned char (a byte)
> and xmlChar * are supposed to be 0 terminated and encoded in UTF8.
> (if you run a pedantic parser it will tell you places where C strings
> are assigned to xmlChar * and you can check that the cast makes sense).
>
> If you tell me what is the encoding used in a gchar * then doing
> the conversions functions back and forth are close to trivial and
> I will provide them ! Do you all expect ISO-Latin-1, or is there
> different encodings depending on other settings ?
In the majority of cases, the answer is probably "whatever character
encoding X is using for the current locale".
James.
--
Email: james daa com au
WWW: http://www.daa.com.au/~james/
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]