From 4a5ba62fb30872a2bb0648150de2c195519bedcc Mon Sep 17 00:00:00 2001 From: cr8t <124842229+cr8t@users.noreply.github.com> Date: Fri, 25 Aug 2023 15:25:10 -0600 Subject: [PATCH] fixup/writer: minor change for encoding case Change the explicit encoding used in `writer::Emitter` to be `UTF-8` for consistency with the rest of the library. --- src/writer/emitter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/writer/emitter.rs b/src/writer/emitter.rs index 2cdf2e7c..bd39d4fe 100644 --- a/src/writer/emitter.rs +++ b/src/writer/emitter.rs @@ -222,7 +222,7 @@ impl Emitter { fn check_document_started(&mut self, target: &mut W) -> Result<()> { if !self.start_document_emitted && self.config.write_document_declaration { - self.emit_start_document(target, common::XmlVersion::Version10, "utf-8", None) + self.emit_start_document(target, common::XmlVersion::Version10, "UTF-8", None) } else { Ok(()) }