I am executing the following statement.
$mystring = <<<EOT
UPDATE sites_niche SET `short_review` = REPLACE(`short_review`, '’',"'");
EOT;
However, it doesnt work, as it would work if I placed it in my phpmyadmin. The culprit is this bad character ’
that character is simply not being replaced.
I tried to print the update statement to the screen and I get this:
UPDATE sites_niche SET `short_review` = REPLACE(`short_review`, '’',"'");
I think that the string gets garbled as soon as it goes to the database. My question is
how do encode those sets of characters ’
so that they dont get garbled as soon as they go to the database.