2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

98_JsonList2.pm: fix for attr global encoding unicode (Forum #126088)

git-svn-id: https://svn.fhem.de/fhem/trunk@26701 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-11-14 09:51:02 +00:00
parent 0393a4becb
commit 351774dd4d

View File

@ -28,7 +28,7 @@ JsonList2_Escape($)
$a =~ s/"/\\"/g;
$a =~ s/\n/\\n/g;
my $b = "x$a";
$a = "<BINARY>" if(!utf8::decode($b)); # Forum #55318
$a = "<BINARY>" if(!utf8::decode($b) && !$unicodeEncoding); # Forum #55318
return $a;
}