OK :) naja habe die Version etwas Modifiziert :=
Meine Funktion zum ersetzten der Umlaute.
Das bauste in die ajax_load.php ein.PHP-Code:
function replaceUmlaute($text)
{
$text = str_replace("ß","ß",$text);
$text = str_replace("ä","ä",$text);
$text = str_replace("ö","ö",$text);
$text = str_replace("ü","ü",$text);
$text = str_replace("Ä","Ä",$text);
$text = str_replace("Ö","Ö",$text);
$text = str_replace("Ü","Ü",$text);
$text = str_replace("é","é",$text);
return $text;
}
Dann werden alle Umlaute ersetzt.
Musst natürlich noch einbinden :)
PHP-Code:
echo utf8_encode(replaceUmlaute(file_get_contents('http://www.joke-factory.de/external/vms_witze/zufallswitz.php'.$query_string)));