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 a8e9b1efc0
commit 907bc894be

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);