There is a mismatch between the character encoding of your XML and what you output from PHP. Most likely, one of them is UTF-8, and one is ISO-8859.
On the PHP side, you can set this using the header directive
<?php header('Content-Type: text/plain; charset=ISO-8859-1'); header('Content-Type: text/plain; charset=utf-8'); ?>
and / or in the output HTML
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
On the XML side, most quality text editors allow you to specify the character encoding when saving the file. (E.g. WordWrangler on Mac)
If the XML file is indeed located in ISO-8859, you can use utf8_encode() to convert it to UTF-8 as it reads to.
Deep discussion of PHP and character encodings .
source share