Page 1 of 1

How to retrieve html source as it is???

Posted: Tue Jun 12, 2007 7:26 pm
by rajbal
Hi,
When i am saving the below shown html to a text file using php write function, the text file is not the same as the html source.

Character "&nbsp" changes to "Â" and "&gt" converts to ">".How can i save the below shown html as it is to the text file.

Html source to be saved
====================
<div class="secondaryLink bottomMarg2" id="crumbtrail">
<a href="http://www.dev.com/?pageid=searchcompos ... r">Home</a>
&nbsp;>&nbsp;Search
</div>
<h1>Composer Search Results For: John</h1>


Regards,
Raj

Posted: Tue Jun 12, 2007 8:16 pm
by feyd
Sounds like an encoding error.