Forum Moderators: coopster
I'm currently building multilanguage website and I have a strange problem when I try to print messages in another languages. For example, when I get russian translations from MySQL database and trying to print them with PHP, browser shows just "?" instead of the message in russian.
My MySQL tables are UTF-8 by default (character set is set to "UTF-8 Unicode" and collation is set to "utf8_general_ci").
My HTML pages have also metatag to show UTF-8:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
I've googled for it, and found one advice. I've added "mysql_query("SET NAMES utf8");" into my PHP script before other MySQL queries instead of "?" I get a lot of ugly characters in the browser now like "Добавить место для посещения".
I think it's PHP/MySQL problem, not browser or HTML. I wonder how can I fix it?