my code:
<?php
header('Content-Type: application/json; charset=utf-8');
$url = "http://80.211.192.133:8117/stats";
$json = file_get_contents($url);
$obj = json_decode($json);
$error = json_last_error();
var_dump($error);
?>
I am getting error:
code 5 - Malformed UTF-8 characters when encoding callback response
but when you open the link from $url
variable, it is showing correct data.
can someone help me with that?