Answer the question
In order to leave comments, you need to log in
How to set JSON_UNESCAPED_UNICODE in JsonModel?
How can I prevent escaping unicode characters in the JsonModel so that it doesn't get \uXXXX in the output?
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\JsonModel;
class AjaxController extends AbstractActionController
{
public function indexAction()
{
$json = new JsonModel(array(
'html' => 'тест'
));
return $json;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question