[xml] Res: Help with encoding
- From: Elenice <rosa_le yahoo com br>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: [xml] Res: Help with encoding
- Date: Wed, 18 Oct 2006 12:40:26 -0700 (PDT)
Sorry if i dindn't explaim me very well.
i know that the parser don't wrong, sorry.
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.
i need to know if it is possible.
Thanks Again!
and i'm sorry if i didn't understand very well.
Elenice
----- 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 16:09:03
Assunto: Re: [xml] Help with encoding
On Wed, Oct 18, 2006 at 11:57:39AM -0700, Elenice wrote:
> Hello!
> I need some help about encoding,
> the xml that I received has:
> <?xml version="1.0" encoding="iso-8859-1" ?>
> in this xml I received a tag like this: <TAG>PRAÇA DA SÉ</TAG>, the problem is that I can´t receive the especial caracter: "ç", "é", and when the parser is done, the string that I instead receive is: "PRAÃ\207A DA SÃ\211".
> I need to know what to do, so this don't happen again.
You need to read to understand the fundamental concepts of characters,
code points and encodings, there are pointers and explanations of libxml2
own behaviour at:
http://xmlsoft.org/encoding.htmlSorry there is no alternative than to learn and understand those concepts.
Libxml2 APIs use UTF-8, what you seems to consider wrong is actually
perfectly correct.
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/
Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar seu conhecimento? Experimente o
Yahoo! Respostas!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]