function utf8converter_decode_utf8($what, $to_encoding) { if (!utf8converter_can_convert_encoding($from_encoding)) { return false; } // if if (!$what) { return ''; } // if $converter = new UTF8Converter($to_encoding); return $converter->utf8ToStr($what); }