Hey All,
I have a record on my database which holds the character Á , when trying to read this out as XML like so:
<?xml version="1.0" encoding="utf-8"?>
<response>
<description><![CDATA[Á - <b>special character test</b>]]></description>
</response>
I get the error:
XML Parsing Error: not well-formed
Which refers to the Á character.
I can put in this before the xml is created:
$value = htmlentities($value);
Which fixes the 'not well formed' error, but also converts the <b> tags which I want to keep in place.
Is there a way to only convert the Á character (or any other non english characters) but keep the html tags in place?
Cheers