From 7b9cb7f9fb4a09693839e34471b7296cb80ec8c0 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 26 Jul 2021 10:14:10 +0200 Subject: [PATCH] SVGRenderer: Set correct input encoding fixes #4462 --- library/Icinga/Chart/SVGRenderer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Icinga/Chart/SVGRenderer.php b/library/Icinga/Chart/SVGRenderer.php index c9027f5b7..344ddd550 100644 --- a/library/Icinga/Chart/SVGRenderer.php +++ b/library/Icinga/Chart/SVGRenderer.php @@ -233,6 +233,7 @@ class SVGRenderer $this->addAriaDescription($this->svg, $this->ariaTitle, $this->ariaDescription); $this->svg->appendChild($this->rootCanvas->toSvg($ctx)); $this->document->formatOutput = true; + $this->document->encoding = 'UTF-8'; return $this->document->saveXML(); }