Bug #156 Text encoding is changed in result file that occurs after computing of xpath

This commit is contained in:
Zane U. Ji 2013-12-14 21:30:23 +08:00
parent 43e57d0dd5
commit e516b13d5e
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ bool WrapLibxml::xpath ( const std::string& path, const std::string& fileName )
docPtr = xmlCtxtReadFile ( docPtr = xmlCtxtReadFile (
ctxt, ctxt,
fileName.c_str(), fileName.c_str(),
NULL, "UTF-8",
//(netAccess) ? XML_PARSE_DTDLOAD | XML_PARSE_NOENT : XML_PARSE_DTDLOAD | XML_PARSE_NONET | XML_PARSE_NOENT //(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 XML_PARSE_NOENT | XML_PARSE_NONET | XML_PARSE_NSCLEAN
); );