echo
unicode_decode(json_encode(
$response
));
function
unicode_decode(
$name
)
{
$pattern
= '/([\w]+)|(\\\u([\w]{4}))/i';
preg_match_all(
$pattern
,
$name
,
$matches
);
if
(!
empty
(
$matches
))
{
for
(
$j
= 0;
$j
<
count
(
$matches
[0]);
$j
++)
{
$str
=
$matches
[0][
$j
];
if
(
strpos
(
$str
, '\\u') === 0)
{
$code
=
base_convert
(
substr
(
$str
, 2, 2), 16, 10);
$code2
=
base_convert
(
substr
(
$str
, 4), 16, 10);
$c
=
chr
(
$code
).
chr
(
$code2
);
$c
= iconv('UCS-2BE', 'UTF-8',
$c
);
$name
=
str_replace
(
$str
,
$c
,
$name
);
}
else
{
}
}
}
return
$name
;
}