PHP converting Pound Signs incorrectly
I am using a WYSWYG text editor in my CMS and when I post the page to save the data, I simply capture the following field and save it to the database as such:
Now for some reason this is converting £ signs to be £ in my database - why is this??
// UPDATE query here...
pagecontent = '".mysql_real_escape_string($pagecontent)."'
I am not converting them with htmlentities, I just want the £ signs to remain as £ signs in my database and not entity versions.
Thanks for reading.
My guess is that it's the WYSIWYG editor doing the conversion, if, in fact, you are not applying htmlentities() anywhere in the data flow.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)