Re: [xml] xmlXpathEval and iso8859-1 encoding

On Mon, Sep 16, 2002 at 11:10:30AM +0200, Fco . Mario Barcala Rodríguez wrote:
I have some problems with xmlXpathEval about iso-8859-1 encoding:

1) As i have said, i work with iso-8859-1 encoding. How can i ask about an
attribute value with "special" characters? I mean, when i ask
tag1/tag2/tag3[ attribute='value'], it works well if there isn't characters
like á, é, etc, but with these characters it does return nothing.

  the internal format is UTF8, it's the required encoding for all the
libxml APIs, XPath included. transcode your query in UTF8.

2) If i use these characters in tag and attribute names, xmlXPathEval prints
"xmlXPathEval:evaluation failed", pointing to these characters as errors.

   Same problem, same solution !


Daniel Veillard      | Red Hat Network
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]