Daniel,
Thanks a lot.
i did what i needed, using your advice.
----- Mensagem original ----
De: Daniel Veillard <[EMAIL PROTECTED]>
Para: Elenice <[EMAIL PROTECTED]>
Cc: [email protected]
Enviadas: Quarta-feira, 18 de Outubro de 2006 17:40:36
Assunto: Re: Res: [xml] Help with encoding
De: Daniel Veillard <[EMAIL PROTECTED]>
Para: Elenice <[EMAIL PROTECTED]>
Cc: [email protected]
Enviadas: Quarta-feira, 18 de Outubro de 2006 17:40:36
Assunto: Re: Res: [xml] Help with encoding
On Wed, Oct 18, 2006 at 12:40:26PM -0700, Elenice wrote:
> i already read this page, but, unfortnatly i didin't understand about encoding iso-8859-1, becouse this is the encoding that i'm using, and i set all the variables of my OS to this encoding iso-8859-1, and a thought that i would get took back the original character that was sent in the xml.
No, libxml2 APIs are using UTF-8, the reasons are explained in that page.
You can convert the strings to another encoding if needed but libxml2 won't
do that by itself. Function to convert from UTF-8 to ISO 8859 1 is here
http://xmlsoft.org/html/libxml-encoding.html#UTF8Toisolat1
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
[EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
> i already read this page, but, unfortnatly i didin't understand about encoding iso-8859-1, becouse this is the encoding that i'm using, and i set all the variables of my OS to this encoding iso-8859-1, and a thought that i would get took back the original character that was sent in the xml.
No, libxml2 APIs are using UTF-8, the reasons are explained in that page.
You can convert the strings to another encoding if needed but libxml2 won't
do that by itself. Function to convert from UTF-8 to ISO 8859 1 is here
http://xmlsoft.org/html/libxml-encoding.html#UTF8Toisolat1
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
[EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Yahoo! Search
Música para ver e ouvir: You're Beautiful, do James Blunt
_______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
