mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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:
parent
0393a4becb
commit
351774dd4d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user