From b03707961c526fd7f5ec3a5b7859a71b9b9a9a3a Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Mon, 16 Dec 2013 23:24:48 +0800 Subject: [PATCH] Bug #159 Can't change encoding while "Save UTF-8 BOM" option selected --- src/wraplibxml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wraplibxml.cpp b/src/wraplibxml.cpp index 49055c4..e098515 100644 --- a/src/wraplibxml.cpp +++ b/src/wraplibxml.cpp @@ -576,7 +576,7 @@ int WrapLibxml::saveEncodingFromFile ( xmlDocPtr docPtr = xmlCtxtReadFile ( ctxt, 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 if ( !docPtr ) {