SVGRenderer: Set correct input encoding

fixes #4462
This commit is contained in:
Johannes Meyer 2021-07-26 10:14:10 +02:00
parent a4376cd14f
commit 7b9cb7f9fb
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}