2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 16:05:19 +00:00

98_SVG.pm: fix the fix (#129693)

git-svn-id: https://svn.fhem.de/fhem/trunk@26539 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-10-15 10:44:44 +00:00
parent adf7883702
commit 5f76780903

View File

@ -2526,7 +2526,7 @@ plotAsPng(@)
# Forum #32791,#116138: some lib versions cannot parse complex CSS selectors # Forum #32791,#116138: some lib versions cannot parse complex CSS selectors
$svgdata =~ s/\.SVGplot\./\./g if(AttrVal($svgName, "plotAsPngFix", 0)); $svgdata =~ s/\.SVGplot\./\./g if(AttrVal($svgName, "plotAsPngFix", 0));
$svgdata = Encode::decode('UTF-8', $buf) $svgdata = Encode::decode("UTF-8", $svgdata) if(!$unicodeEncoding); #129693
eval { eval {
require Image::LibRSVG; require Image::LibRSVG;