From c057dfeee6c1d14ee922627fb8a82a2b22f7ec8b Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Mon, 14 Nov 2022 09:51:02 +0000 Subject: [PATCH] 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 --- fhem/FHEM/98_JsonList2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/98_JsonList2.pm b/fhem/FHEM/98_JsonList2.pm index 28e5b54e3..706ce6148 100644 --- a/fhem/FHEM/98_JsonList2.pm +++ b/fhem/FHEM/98_JsonList2.pm @@ -28,7 +28,7 @@ JsonList2_Escape($) $a =~ s/"/\\"/g; $a =~ s/\n/\\n/g; my $b = "x$a"; - $a = "" if(!utf8::decode($b)); # Forum #55318 + $a = "" if(!utf8::decode($b) && !$unicodeEncoding); # Forum #55318 return $a; }