70_LaMetric2: fix some UTF8 stuff

git-svn-id: https://svn.fhem.de/fhem/trunk@17987 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2018-12-16 16:38:36 +00:00
parent ce66482926
commit af5991638c

View File

@@ -354,9 +354,11 @@ sub LaMetric2_Set($@) {
&& keys %{ $hash->{helper}{cancelIDs} } > 0 );
$usage .= " input:,";
$usage .= join( ',',
map $hash->{helper}{inputs}{$_}{name},
sort keys %{ $hash->{helper}{inputs} } )
$usage .= encode_utf8(
join( ',',
map $hash->{helper}{inputs}{$_}{name},
sort keys %{ $hash->{helper}{inputs} } )
)
if ( defined( $hash->{helper}{inputs} )
&& keys %{ $hash->{helper}{inputs} } > 0 );
@@ -1999,7 +2001,7 @@ sub LaMetric2_SetNotification {
(
{
icon => $ico,
text => $line,
text => decode_utf8($line),
index => $index++,
}
);