the code like below:
<?php
$app = new Phalcon\Mvc\Micro(new Phalcon\DI\FactoryDefault());
$r=$app->response;
$r->setJsonContent(array('中文'));
echo $r->getContent();
will produte the output like
["\u4e2d\u6587"]
In my client (writen by C++) the result parsed by JSONNode is can't readable. but the code below is fine
<?php
$app = new Phalcon\Mvc\Micro(new Phalcon\DI\FactoryDefault());
$r=$app->response;
$r->setContent(json_encode(array('中文'),JSON_UNESCAPE_UNICODE));
echo $r->getContent();
output:
["中文"]
Is that a bug?