Suche auf lima-city
-
in: Irgendetwas konvertiert ISO automatisch zu UTF-8...
geschrieben von xbgames
hast Du vielleicht im Code noch sowas drin ?
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
wenn ja, auch das noch ändern zu
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
und vielleicht hilft ja sowas:
<?php header('content-type: text/html; charset=iso-8859-1'); // ---- hier das Formular .... echo ' <form name="form1" method="GET" action=""> Bitte Text eingeben: <br> <textarea name="text" cols="40" rows="6" wrap="VIRTUAL"></textarea> <br> Absenden: <input type="submit" name="run" value="OK" /> </form> '; // ------- Text aus Formular-Eingabe ------ if (!empty($_GET['text'])) { $text = $_GET['text']; echo "<br />Vorher: <br />\n<pre>\n".$text."\n</pre>\n"; // ------ Wenn $text UFT-8 ist, dann: utf8_decode() anwenden ------ if (mb_detect_encoding($text, 'UTF-8', true) === TRUE) { $text = utf8_decode($text); } echo "<br />Nachher: <br />\n<pre>\n".$text."\n</pre>\n"; } ?>