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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -