Re: [xml] How xmlXPathEvalExpression() eval CHINESE xpath expression?
- From: Remy HAREL <rharel ext rd francetelecom com>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] How xmlXPathEvalExpression() eval CHINESE xpath expression?
- Date: Fri, 27 May 2005 11:29:55 +0200
Hi folks,
As Daniel precised a few days ago, you can use Iconv to convert you
xpath from an encoding to utf-8. And also, be sure to initialize well
your pointer to receive the result of the conversion ( calloc ).
Regards
_____________________________________________
Remy HAREL - Teamlog |
____________________________________________|
Linux registered user #224740 |
France Telecom Recherche & Developpement |
____________________________________________|
__________________@ http://www.chezrem.org @|
Daniel Veillard wrote:
On Fri, May 27, 2005 at 11:58:29AM +0800, canbaby wrote:
Hello:
help me, How could I use xmlXPathEvalExpression() to eval a xpath
that contain CHINESE?
I test it, but error message:
xpath error: encoding error
I thinks it's the problem encoding, but I'm a newbie, so want your help.
give some code better
All I can tell is that the string must be encoded in UTF-8, that's
probably the problem. Convert your query string to UTF-8.
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]