diff --git a/www/api/class/centreon_configuration_timeperiod.class.php b/www/api/class/centreon_configuration_timeperiod.class.php index 22546150d8c..81f27ed56e2 100644 --- a/www/api/class/centreon_configuration_timeperiod.class.php +++ b/www/api/class/centreon_configuration_timeperiod.class.php @@ -83,7 +83,7 @@ public function getList() while ($data = $stmt->fetch()) { $timePeriodList[] = array( 'id' => $data['tp_id'], - 'text' => $data['tp_name'] + 'text' => html_entity_decode($data['tp_name']), ); } return array( diff --git a/www/api/class/webService.class.php b/www/api/class/webService.class.php index 36147556a3a..c56d079dc02 100644 --- a/www/api/class/webService.class.php +++ b/www/api/class/webService.class.php @@ -222,8 +222,8 @@ public static function sendResult($data, $code = 200, $format = null) break; case static::RESULT_JSON: case null: - header('Content-type: application/json'); - print json_encode($data); + header('Content-type: application/json;charset=utf-8'); + print json_encode($data, JSON_UNESCAPED_UNICODE); break; }