Re: [xml] Help with encoding

On Wed, Oct 18, 2006 at 11:57:39AM -0700, Elenice wrote:
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:

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.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]