We are moving our web application from Apache 2.0 to IIS 7.
Everyhing is fine with UTF-8 encoding, but just one thing.
There's a flash movie in the page that reads an xml content (dynamically generated by php) which if served by Apache correctly displays french-specific characters (èé, for example), while if the same content is served by IIS 7 those characters are screwed up.
"Hm, server encoding", I thought.
Well I put in my script the line
header('Content-Type: text/xml; charset=utf-8');
before anything else; the XML content is correctly quoted with UTF-8 encoding:
$str = '<?xml version="1.0" encoding="UTF-8"?>';
and the encoding of underlying MySQL database and tables is utf8-general-ci.
After that nothing changes: characters like èé are still screwed up if the XML is served through apache.
What am I doing wrong?