Ok...vedi così se funge...
Codice PHP:
function unicode_decode($str){
return preg_replace("/\\\u([0-9A-F]{4})/ie", "hex2str(\"$1\")", $str);
}
function hex2str($hex) {
$r = '';
for ($i = 2; $i < strlen($hex) - 1; $i += 2){
$r .= chr(hexdec($hex[$i] . $hex[$i + 1]));
}
return $r;
}
$text = "Grazie mille per l'aiuto, \u00ec \u0031 \u00fc \u00e8";
$stringa_de_codificata = unicode_decode($text);
echo $stringa_de_codificata;