$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');