How to retrieve html source as it is???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rajbal
Forum Newbie
Posts: 1
Joined: Tue Jun 12, 2007 7:24 pm

How to retrieve html source as it is???

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Sounds like an encoding error.
Post Reply