Content with special characters e.g. ' " -
when stored are replace into characters like these �
. But not all instances of the characters are changed to characters like these �
. So it is a little odd why it only affects some characters and not all.
After reading some articles online and in SO I found out about table collation
and charset
- I am using PHP MySQL
- I use prepared statements when storing and getting values
- Database Tables collation are set to
utf8_unicode_ci
- My pages are
html5
with<meta charset="utf-8">
With the above settings I still get the black diamonds. Any help? I am a little desperate.
EDIT:
Maybe some of you will go through the exact same problem in the future. You might find my answer below as the exact same solution. Cheers!