Fix diacritics in api explorer output
authorColeman Watts <coleman@civicrm.org>
Mon, 23 Mar 2015 16:33:47 +0000 (12:33 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 23 Mar 2015 16:33:47 +0000 (12:33 -0400)
CRM/Utils/REST.php

index 0df9cdd939e806c4490f0fd281529519289abcb7..1f506bfeafe4456943614a9f60a40cdb8d415d94 100644 (file)
@@ -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