function unicode_decode($txt) {
$txt = preg_replace_callback(
'/%u([[:alnum:]]{4})/',
create_function('$match', 'return "&#".hexdec($match[1]).";";'),
$txt
);
$txt = preg_replace_callback(
'/%([[:alnum:]]{2})/',
create_function('$match', 'return "&#".hexdec($match[1]).";";'),
$txt
);
return ($txt);
}