Re: libxml2 in gnome 1.4



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/






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