foreach ($data1[0] as $str)
if (preg_match('/(?<="title":")(.+?)(?=")/', $str, $m))
$title[] = utf8_decode(unicode_decode($m[1]));
// Нашел на просторах гитхаба
function replace_unicode_escape_sequence($match) {
return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');
}
function unicode_decode($str) {
return preg_replace_callback('/\\\\u([0-9a-f]{4})/i', 'replace_unicode_escape_sequence', $str);
}
print("<pre>".print_r($title,true)."</pre>");
Входные данные

Выходные данные

В чем проблема ? Может тут вовсе не юникод ? Ставил auto в mb_convert_encoding , все равно такая же проблема(только другие символы на выходе), не перекодируется в кириллицу.