Skip to content

Commit

Permalink
fixup/writer: minor change for encoding case
Browse files Browse the repository at this point in the history
Change the explicit encoding used in `writer::Emitter` to be `UTF-8` for
consistency with the rest of the library.
  • Loading branch information
cr8t authored and kornelski committed Nov 6, 2024
1 parent 19b6cbb commit 4a5ba62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl Emitter {

fn check_document_started<W: Write>(&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(())
}
Expand Down

0 comments on commit 4a5ba62

Please sign in to comment.