I have a database with names.
I have a PHP MySQL query that fetches names form that database.
These names include characters like ž, š, đ, č, ć, etc.
But when I run the Website these characters are displayed as this �
I have a <meta charset="UTF-8"> in my header and the database was created with utf8_general_ci, and I also tried utf8_unicode_ci as well.
What can I do ?
EDIT: If I use utf8_encode for the echo it returns the name without the characters
echothe data, useutf8_encode()(php.net/manual/en/function.utf8-encode.php)