aboutsummaryrefslogtreecommitdiff
path: root/app/class
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-23 00:26:04 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-23 00:26:04 +0100
commit270a0f8798367dd24f3d640f19ff6e8554d22b60 (patch)
treeb82ff00eacca440f6de754e63adac632656a9094 /app/class
parent695908c7ab2a5d5f011f616d2af3368da7131a6f (diff)
downloadwcms-270a0f8798367dd24f3d640f19ff6e8554d22b60.tar.gz
wcms-270a0f8798367dd24f3d640f19ff6e8554d22b60.zip
json formater unicode
Diffstat (limited to 'app/class')
-rw-r--r--app/class/wflywheel/formatter/json.php1
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)