dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: PHP converting Pound Signs incorrectly

  1. #1
    Join Date
    Aug 2007
    Posts
    94

    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
    Location
    Ankh-Morpork
    Posts
    21,443
    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.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

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

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

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