From e516b13d5ecfd490d872cd9bcad4aa3634d1ff37 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sat, 14 Dec 2013 21:30:23 +0800 Subject: [PATCH] Bug #156 Text encoding is changed in result file that occurs after computing of xpath --- src/wraplibxml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wraplibxml.cpp b/src/wraplibxml.cpp index 80cddb1..ee18e09 100644 --- a/src/wraplibxml.cpp +++ b/src/wraplibxml.cpp @@ -309,7 +309,7 @@ bool WrapLibxml::xpath ( const std::string& path, const std::string& fileName ) docPtr = xmlCtxtReadFile ( ctxt, fileName.c_str(), - NULL, + "UTF-8", //(netAccess) ? XML_PARSE_DTDLOAD | XML_PARSE_NOENT : XML_PARSE_DTDLOAD | XML_PARSE_NONET | XML_PARSE_NOENT XML_PARSE_NOENT | XML_PARSE_NONET | XML_PARSE_NSCLEAN );