I\'ve got a php script. Most of the time the script returns html, which is working fine, but on one occasion (parameter ?Format=XML) the script returns XML instead of HTML.<
header('Content-Type: application/xml; charset=utf-8');
You can add encoding as well in the same line. I added utf-8, which is most common.