diff --git a/phplib/utils.php b/phplib/utils.php index df5e6e0..9119e55 100644 --- a/phplib/utils.php +++ b/phplib/utils.php @@ -49,7 +49,8 @@ static function fetch_json($hostname,$port,$protocol,$url) { "details" => $errmsg ]; } else { $ret["curl_stats"] = ["$hostname:$port" => curl_getinfo($ch)]; - $ret["details"] = json_decode($json, true); + $filtered_json = mb_convert_encoding($json, "UTF-8", "UTF-8"); + $ret["details"] = json_decode($filtered_json, true); } curl_close($ch);