Skip to content

Commit

Permalink
chore(svg): Change XML declaration
Browse files Browse the repository at this point in the history
Set `UTF-8` in the encoding declaration.
  • Loading branch information
sorairolake committed Jul 12, 2024
1 parent 227b5c0 commit de734ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/render/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl<'a> RenderCanvas for Canvas<'a> {
Canvas {
svg: format!(
concat!(
r#"<?xml version="1.0" standalone="yes"?>"#,
r#"<?xml version="1.0" encoding="UTF-8" standalone="yes"?>"#,
r#"<svg xmlns="http://www.w3.org/2000/svg""#,
r#" version="1.1" width="{w}" height="{h}""#,
r#" viewBox="0 0 {w} {h}" shape-rendering="crispEdges">"#,
Expand Down
2 changes: 1 addition & 1 deletion src/test_annex_i_micro_qr_as_svg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/test_annex_i_qr_as_svg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit de734ba

Please sign in to comment.