fix: Fix a unicode issue with the correlation graphs

pull/1857/head
Iglocska 2017-01-17 14:50:39 +01:00
parent 0f7d37ce04
commit 770b69dbc2
1 changed files with 5 additions and 0 deletions

View File

@ -3678,6 +3678,11 @@ class EventsController extends AppController {
} else {
$json = $this->__buildGraphJson($id);
}
array_walk_recursive($json, function(&$item, $key){
if(!mb_detect_encoding($item, 'utf-8', true)){
$item = utf8_encode($item);
}
});
return new CakeResponse(array('body' => json_encode($json), 'status' => 200));
}