I am getting these chars as I insert into a database: “likeâ€. Its suppose to be "like" but it comes out that way.
It inserts into the database that way from a form I submit. I tried htmlspecialchars and addslashes but this did not work.
I am sure this is a simple fix. Just cant find it.
Thanks
UPDATE: I noticed that the funny chars come from the quotes that Microsoft Word makes. I used this code and it worked... for now.
$Comments = $_POST[Comments];
$Comments = str_replace("”", "\"", $Comments);
$Comments = str_replace("“", "\"", $Comments);