This seems to be ever lasting problem of showing special characters in HTML.
I am using PDO with mysql and PHP, the collation in mysql is utf8_unicode_ci
.
Here is this sentence and name saved in database.
"I can't go to school
When I make a select query and echo it in my HTML file ,it appears like this
“I can't go to school
I have set $PDO->exec("set names utf8");
that should make that the response received should handle the special characters.
Moreover my HTML has this on top when I view the viewsource via browser
<meta content="charset=utf-8">
I suppose there could be two reasons, either the data is not fetched properly or it is fetched properly but not displated properly in View,
how can I solve/debug that ?