gscomputers Posted April 30, 2012 Share Posted April 30, 2012 Hi, Please forgive me but I am new to this, I am no expert with PHP but have been helping my Brother-in-Law with his website. I have come across an issue which I just cannot get past. the following link is of a site I have been setting up. http://ushersuk.com/search.php?propertyid=10041690- where you see the Full Description, I seem to get a funny symbol instead of a pound sign (£). The site is pulled from an XML Feed which uses £ as the code for the pound sign. It somehow cuts out most of the price also, I cannot seem to find a way to make it work and would really appreciate some fresh eyes on this to see what I am missing. The script I have tried is print "<p style='text-align:left'>".htmlspecialchars_decode($propertyFullDescription)."</p>"; I am sure I am doing something wrong. Please help... Grant Quote Link to comment https://forums.phpfreaks.com/topic/261867-htmlspecialchars_decode/ Share on other sites More sharing options...
bspace Posted May 1, 2012 Share Posted May 1, 2012 the "code" for a pound sign is £ note the semicolon, your feed is not terminating the character reference correctly the 'funny symbol' represents 𧹇, i assume the last bit '399' is the missing part of the price if you can't correct it at source, maybe you can do a search and replace Quote Link to comment https://forums.phpfreaks.com/topic/261867-htmlspecialchars_decode/#findComment-1341821 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.