From: Coleman Watts Date: Mon, 23 Mar 2015 16:33:47 +0000 (-0400) Subject: Fix diacritics in api explorer output X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=695ad4c7ac02fbf3c87c80ecdf6346ad44759491;p=civicrm-core.git Fix diacritics in api explorer output --- diff --git a/CRM/Utils/REST.php b/CRM/Utils/REST.php index 0df9cdd939..1f506bfeaf 100644 --- a/CRM/Utils/REST.php +++ b/CRM/Utils/REST.php @@ -187,7 +187,7 @@ class CRM_Utils_REST { public static function jsonFormated($data) { // If php is 5.4+ we can use the native method if (defined('JSON_PRETTY_PRINT')) { - return json_encode($data, JSON_PRETTY_PRINT + JSON_UNESCAPED_SLASHES); + return json_encode($data, JSON_PRETTY_PRINT + JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE); } // PHP 5.3 shim