both run php 5.4 (prod 5.4.19 and dev 5.4.16).
Prod is Ubuntu 12.04 and Dev Mac OSX 10.9
I already reinstalled everything twice on production but whatever I do, the client encoding in the settings doesn’t work as expected. In both, prod and dev, I’m now connecting to the same database (on ClearDB) with client encoding UTF-8.
When I then check the server variables with: $re = mysql_query(‘SHOW VARIABLES LIKE “c%”;’)or die(mysql_error());
I get these results:
// result from Dev (Mac OSX)
character_set_client: utf8
character_set_connection: utf8
character_set_database: utf8
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
collation_connection: utf8_general_ci
collation_database: utf8_general_ci
collation_server: latin1_swedish_ci
completion_type: NO_CHAIN
concurrent_insert: AUTO
connect_timeout: 10
// result from Prod (Ubuntu 12.04)
character_set_client: latin1
character_set_connection: latin1
character_set_database: utf8
character_set_filesystem: binary
character_set_results: latin1
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
collation_connection: latin1_swedish_ci
collation_database: utf8_general_ci
collation_server: latin1_swedish_ci
completion_type: NO_CHAIN
concurrent_insert: AUTO
connect_timeout: 10
I sure don’t know anymore where else to look.
regards,
Volker