function to_utf8($text, $enc='ISO-8859-1') { if (function_exists('iconv')) { return iconv($enc,'UTF8',$text); } return $text; } ever so forgetful - added $text above