From 3e19da929856309916a638251fda7ffe13b54d9e Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Sun, 6 Jul 2025 21:31:34 +0000 Subject: [PATCH] 76_SolarForecast: contrib V 1.54.1 git-svn-id: https://svn.fhem.de/fhem/trunk@30109 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 8d9a9c8a6..0f6dd491c 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -160,7 +160,7 @@ BEGIN { # Versions History intern my %vNotesIntern = ( - "1.54.1" => "06.07.2025 change utf8 to UTF-8, userExit: new coding ", + "1.54.1" => "06.07.2025 change utf8 to UTF-8, userExit: new coding, __createReduceIcon: fix Wide character in syswrite - https://forum.fhem.de/index.php?msg=1344368 ", "1.54.0" => "05.07.2025 edit commandref, ___areaFactorTrack: important bugfix in calc of direct area factor for DWD use ", "1.53.3" => "04.07.2025 Change of the correction factor calculation to the ratio of real production and the API raw forecast ", "1.53.2" => "03.07.2025 graphicControl->showDiff can be set separately for each level ". @@ -16036,15 +16036,19 @@ sub __createReduceIcon { my $img; if (!defined $rps) { - $img = '-'; - $title = $htitles{rdcstat}{$lang}; + $title = encode ('UTF-8', $htitles{rdcstat}{$lang}); $title =~ s//$name/xs; + $img = '-'; } elsif ($rps) { - $img = FW_makeImage ('10px-kreis-gelb.png', $htitles{rdcactiv}{$lang}); + $title = encode ('UTF-8', $htitles{rdcactiv}{$lang}); + $title =~ s//$name/xs; + $img = FW_makeImage ('10px-kreis-gelb.png', $title); } else { - $img = FW_makeImage ('10px-kreis-gruen.png', $htitles{rdcnoact}{$lang}); + $title = encode ('UTF-8', $htitles{rdcnoact}{$lang}); + $title =~ s//$name/xs; + $img = FW_makeImage ('10px-kreis-gruen.png', $title); } my $rpsicon = qq{$img};