2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

70_XBMC.pm: fixed UTF-8 encoding for outgoing JSON messages

git-svn-id: https://svn.fhem.de/fhem/trunk@7454 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vbs2 2015-01-05 20:14:14 +00:00
parent 8f418e2eea
commit 5b504b928b

View File

@ -1038,7 +1038,7 @@ sub XBMC_Call($$$)
$obj->{id} = XBMC_CreateId();
}
$obj->{jsonrpc} = "2.0"; #JSON RPC version has to be passed
my $json = encode_json($obj);
my $json = JSON->new->utf8(0)->encode($obj);
Log3($name, 5, "XBMC_Call: Sending: " . $json);
if($hash->{Protocol} eq 'http') {
return XBMC_HTTP_Call($hash,$json,$id);