Results 1 to 2 of 2

Thread: PHP converting Pound Signs incorrectly

  1. #1
    Join Date
    Aug 2007

    PHP converting Pound Signs incorrectly

    Hi All

    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:

    PHP Code:
    // UPDATE query here...
    pagecontent '".mysql_real_escape_string($pagecontent)."' 
    Now for some reason this is converting signs to be £ in my database - why is this??

    I am not converting them with htmlentities, I just want the signs to remain as signs in my database and not entity versions.

    Any thoughts?

    Thanks for reading.

  2. #2
    Join Date
    Aug 2004
    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

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles