Remove “question mark inside a black diamond” in mySQL
I started looking for results on Google for my problem (removing the question mark inside a black diamond), but no one seemed to have the correct answer.
See, I am working with a large SQL database and simply editing each record to correct this problem wouldn’t work. After looking on Google I found that the problem was with a non-breaking space not displaying properly even though my HTML (and database) character set is UTF-8. I finally found a solution after many hours of searching and I wanted to share it with everyone:
UPDATE table_name SET field = Replace(field, Char(160), ‘ ‘)
Hopefully this will save you from hours of searching online