PHP parsing XML with invalid character
<p>I am getting an xml file from a webservice.</p>

<p>Unfortunately the file contains character code 2 (\u0002), which breaks the parser.</p>

<p>So I'm trying to remove all character code 2's, but I get wierd results just when trying to do a simple string replace.</p>

<p>To test this, I created a php file named test.php with the following content:</p>

<pre><code>&lt;?
$aaa="Hi"+chr(2)+"There"+chr(2)+"Rick";
$aaa = str_replace($aaa,chr(2),"");
echo $aaa;
?&gt;
</code></pre>

<p>I'm running this from the command line:</p>

<p>php test.php</p>

<p>When I run this I get a blank string.</p>

<p>What am I doing wrong?</p>
