use unescaped unicode in json where supported by PHP

This commit is contained in:
Sarah Hoffmann 2015-03-29 12:55:12 +02:00
parent 2bcd1aa194
commit 987b6a70c9

View File

@ -671,7 +671,10 @@
function javascript_renderData($xVal)
{
header("Access-Control-Allow-Origin: *");
$jsonout = json_encode($xVal);
$iOptions = 0;
if (defined('PHP_VERSION_ID') && PHP_VERSION_ID > 50400)
$iOptions = JSON_UNESCAPED_UNICODE;
$jsonout = json_encode($xVal, $iOptions);
if( ! isset($_GET['json_callback']))
{