Added charset utf8

This commit is contained in:
Maurits van der Schee 2015-03-09 02:06:26 +01:00
commit 7d5fe3fdf5
4 changed files with 10 additions and 4 deletions

View file

@ -16,8 +16,9 @@ function call($method, $url, $data = false) {
return curl_exec($ch);
}
$response = call('GET','http://localhost/api.php/posts,categories,tags,comments?filter=id:1');
$response = call('GET','http://leaseweb_pdb.dev/blog.php/posts,categories,tags,comments?filter=id:1');
$jsonObject = json_decode($response,true);
$jsonObject = mysql_crud_api_transform($jsonObject);
$output = json_encode($jsonObject,JSON_PRETTY_PRINT);
?>