Bug #159 Can't change encoding while "Save UTF-8 BOM" option selected

This commit is contained in:
Zane U. Ji 2013-12-16 23:24:48 +08:00
parent 4b6e1a7bbb
commit b03707961c
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ int WrapLibxml::saveEncodingFromFile (
xmlDocPtr docPtr = xmlCtxtReadFile ( xmlDocPtr docPtr = xmlCtxtReadFile (
ctxt, ctxt,
fileNameSource.c_str(), fileNameSource.c_str(),
"UTF-8", NULL,
( netAccess ) ? XML_PARSE_DTDLOAD : XML_PARSE_DTDLOAD | XML_PARSE_NONET );//XML_PARSE_NONET//XML_PARSE_DTDLOAD//0//(netAccess) ? XML_PARSE_DTDLOAD | XML_PARSE_NOENT : XML_PARSE_DTDLOAD | XML_PARSE_NONET | XML_PARSE_NOENT//0 ( netAccess ) ? XML_PARSE_DTDLOAD : XML_PARSE_DTDLOAD | XML_PARSE_NONET );//XML_PARSE_NONET//XML_PARSE_DTDLOAD//0//(netAccess) ? XML_PARSE_DTDLOAD | XML_PARSE_NOENT : XML_PARSE_DTDLOAD | XML_PARSE_NONET | XML_PARSE_NOENT//0
if ( !docPtr ) if ( !docPtr )
{ {