Re: libxml2 in gnome 1.4



On Sat, 24 Mar 2001, Daniel Veillard wrote:

> > I think this would really make the transition easy.
> 
>   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 ?

I think the most common case is user-entered strings thats encoding I
don't know (the aforementioned case of saving the text from a
GtkEntry).

-- 
   .--= ULLA! =----------------------------.  finger cactus cactus rulez org
   \      http://cactus.rulez.org           \   for PGP public key
    `----------= cactus cactus rulez org =--'
Ha a szavazastol barmi megvaltozna, betiltanak.


_______________________________________________
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]