I use mysql_connect
to a database solely defined in UTF-8. Everywhere I can look in the configuration, I see UTF-8 Unicode (utf8)
or utf8_general_ci
.
However, when I open the PHP connection, then use echo mysql_client_encoding();
, I get latin1
as an output, which is pretty unexpected. Is it taken from some kind of PHP/Apache configuration?