To convert all values of an array in UTF8, do this:
<?php
function convert_before_json(&$item, &$key)
{
$item=utf8_encode($item);
}
array_walk_recursive($your_array,"convert_before_json");
?>
To convert all values of an array in UTF8, do this:
<?php
function convert_before_json(&$item, &$key)
{
$item=utf8_encode($item);
}
array_walk_recursive($your_array,"convert_before_json");
?>