Someone may have come up with something clever, but I did this: <?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; ?> Beau > Apparently, the XML declaration on the first line (<?xml version="1.0" > encoding="iso-8859-1" ?>) is messing PHP up: