<?php

$stream = fopen("epg.xml","r");
$output = stream_get_contents($stream);
fclose($stream);

$output=str_replace(array('iso-8859-1'),array('UTF-8'),$output);
$output=str_replace(array('ä','ö','ü','Ä','Ö','Ü','ß','ÃY','\"'),array('Ã¤','Ã¶','Ã¼','Ã„','Ã-','Ãœ','ss','ss',''),$output);

$file = fopen("new_epg.xml", 'w+');
fwrite($file, $output);
fclose($file);

?>