$text = "русский в утф"; header('Content-type: text/html; charset=ISO-8859-1'); echo "<meta http-equiv='content-type' content='text/html; charset=ISO-8859-1' />"; echo mb_convert_encoding($text, 'ISO-8859-1', 'UTF-8');
$text = "русски в утф"; header('Content-type: text/html; charset=ISO-8859-5'); echo "<meta http-equiv='content-type' content='text/html; charset=ISO-8859-5' />"; echo mb_convert_encoding($text, "ISO-8859-5");
$text = 'русский в утф'; header ('Content-type: text-html; charset=ISO-8859-5'); echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-5\">"; echo $text . "<br>"; echo mb_convert_encoding ($text, 'ISO-8859-5', 'auto');