Mysql Special Character Solution

Discussion in 'MySQL' started by rajivv, Aug 4, 2010.

  1. #1
    Hi,

    WE have uploaded content into the site and in place(frontend) we get the character �


    How do we
    1- find and remove this in mysql (does not accept special characters)
    2- Avoid this in future
    seeing main fault is with '
     
    rajivv, Aug 4, 2010 IP
  2. freshdevelopment

    freshdevelopment Notable Member

    Messages:
    1,303
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    240
    #2
    Where did you get the content from? It could be a special character in Word, a funny line break etc.

    The best thing to do is run the content through a php script which takes out characters outside of a certain entity range.

    To remove it from MySQL, create a PHP script to loop through the table, filter out those characters and update the table.
     
    freshdevelopment, Aug 4, 2010 IP
  3. rajivv

    rajivv Peon

    Messages:
    335
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Its not special character its mainly for ' like in idea's
     
    rajivv, Aug 4, 2010 IP