Commit 64354ea7 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fixed bug reported by Petr Pajas, in the absence of encoding UTF-8 should

* xmlsave.c: fixed bug reported by Petr Pajas, in the absence of
  encoding UTF-8 should really be assumed. This may break if
  the HTTP headers indicates for example ISO-8859-1 since this
  then becomes a well formedness error.
Daniel
parent 7331e5ca
Thu Mar 31 17:20:32 CEST 2005 Daniel Veillard <daniel@veillard.com>
* xmlsave.c: fixed bug reported by Petr Pajas, in the absence of
encoding UTF-8 should really be assumed. This may break if
the HTTP headers indicates for example ISO-8859-1 since this
then becomes a well formedness error.
Thu Mar 31 16:57:18 CEST 2005 Daniel Veillard <daniel@veillard.com>
 
* SAX.c: fixed #172260 redundant assignment.
......
......@@ -1808,6 +1808,9 @@ xmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur,
if ((buf == NULL) || (cur == NULL)) return;
if (encoding == NULL)
encoding = "UTF-8";
memset(&ctxt, 0, sizeof(ctxt));
ctxt.doc = doc;
ctxt.buf = buf;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment