How-to remove smart apostrophes in the PHPMyAdmin database.
Better search and replace and search regex weren’t able to find and replace the broken characters that looked like question marks (Unicode text). In WordPress’s back end, when I edited the post, all I saw were question marks.
My solution was to go to phpMYAdmin and do a search and replace using the SQL tab.
Steps to how I fixed it
- Spellcheck the website with ScreamingFrog
- In the spellcheck results tab, pick out a page with Unicode errors
- Edit that page in WordPress, grabbing the page ID
- In PHPmyAdmin, locate that page ID under wp_posts
- Press edit, and copy ‘n paste the error character/word into the SQL formula embedded below
- Add the desired database safe character in the second section. You can use a slash to escape the inner apostrophe. e.g. ‘can/’t’
- Press go, repeat the process until all errors have been fixed.