diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-23 00:26:04 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-23 00:26:04 +0100 |
commit | 270a0f8798367dd24f3d640f19ff6e8554d22b60 (patch) | |
tree | b82ff00eacca440f6de754e63adac632656a9094 /app | |
parent | 695908c7ab2a5d5f011f616d2af3368da7131a6f (diff) | |
download | wcms-270a0f8798367dd24f3d640f19ff6e8554d22b60.tar.gz wcms-270a0f8798367dd24f3d640f19ff6e8554d22b60.zip |
json formater unicode
Diffstat (limited to 'app')
-rw-r--r-- | app/class/wflywheel/formatter/json.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/class/wflywheel/formatter/json.php b/app/class/wflywheel/formatter/json.php index 8583802..d015cc1 100644 --- a/app/class/wflywheel/formatter/json.php +++ b/app/class/wflywheel/formatter/json.php @@ -10,6 +10,7 @@ class JSON implements \JamesMoss\Flywheel\Formatter\FormatInterface public function encode(array $data) { $options = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : null; + $options .= JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE; return json_encode($data, $options); } public function decode($data) |