Possible Duplicate:
php: using DomDocument whenever I try to write UTF-8 it writes the hexadecimal notation of it.
Here is a snippet of code:
echo "<char>".$row{'char'}."</char>";
row{'char'} is pulling back the german character ö from the database. In PHP, how can I convert that to the correct encoding to be used properly in XML?
Is there a PHP function that can convert everything as needed to the correct format for XML? Or do I need to do it character by character, like so?
echo "<format>".str_replace("&", "&", $row{'format'})."</format>";
Thanks for the help!