$icerik = file_get_content($dosya); echo str_replace("</head>","<meta http-equiv='Content-type' content='text/html; charset=utf-8' /></head>",$icerik);