php - DomDocument encoding -
i have small problem. i'm trying work on xml file, utf-8 character encoding not working.
example:
$dom = new domdocument('1.0', 'utf-8'); if(!$dom->load($url)) die('there problem getting source file!');
the output:
array( [league] => regionalliga süd [team1] => wormatia worms [team2] => 1. fc nÜrnberg ii )
any suggestion regarding problem?
it's not problem of encoding of xml-document, it's problem of encoding of running php-script. sure php-script encoded in utf-8 , correct charset-header sent browser.
Comments
Post a Comment