[xml] Res: Res: Help with encoding
- From: Elenice <rosa_le yahoo com br>
- To: xml gnome org
- Cc: xml gnome org
- Subject: [xml] Res: Res: Help with encoding
- Date: Thu, 19 Oct 2006 07:52:12 -0700 (PDT)
Daniel,
Thanks a lot.
i did what i needed, using your advice.
----- Mensagem original ----
De: Daniel Veillard <veillard redhat com>
Para: Elenice <rosa_le yahoo com br>
Cc: xml gnome org
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#UTF8Toisolat1Daniel
--
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/
Yahoo! Search
Música para ver e ouvir:
You're Beautiful, do James Blunt
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]