function toUtf($value) { if ($value) { return icon_to_utf8($value); } else { return false; } }
function icon_to_utf8($s) { if (is_array($s)) { foreach ($s as $key => $val) { $s[$key] = icon_to_utf8($val); } } else { $s = ct2($s); } return $s; }