From 41be193b8fdf9d1a569d279fcb1ef662e3cadd1f Mon Sep 17 00:00:00 2001 From: Lars Uffmann Date: Thu, 20 Jun 2024 00:35:53 +0200 Subject: [PATCH] xmldocument::save - use encoding as interpreted by get_write_encoding in xml_buffered_writer constructor --- src/pugixml.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index e87fa857..6e6e89eb 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -7466,7 +7466,15 @@ namespace pugi if (!(flags & format_no_declaration) && !impl::has_declaration(_root)) { buffered_writer.write_string(PUGIXML_TEXT("'); if (!(flags & format_raw)) buffered_writer.write('\n'); }