Re: [xml] Res: Help with encoding
- From: Daniel Veillard <veillard redhat com>
- To: Elenice <rosa_le yahoo com br>
- Cc: xml gnome org
- Subject: Re: [xml] Res: Help with encoding
- Date: Wed, 18 Oct 2006 16:40:36 -0400
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/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]