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.html

Sorry 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/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to