I have a problem with this web application and I am hitting a dead end. This site is on a LAMP setup. It doesn't seem to want to accept utf-8 characters but I have set the encoding on the php pages like the headers <? header('Content-Type: text/html; charset=utf-8'); ?> form that submits data into the mysql database. accept-charset="utf-8". The database is set to accept utf-8 (i think). When I insert español it inserts español. I have tried everything. Any ideas? In mysql I am looking at these variables but can't figure out if there's something wrong here. Any help would be greatly appreciated. Thanks!
Variable_name | Value |
+--------------------------+----------------------------------------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/local/mysql/share/mysql/charsets/ |
| collation_connection | latin1_swedish_ci |
| collation_database | utf8_general_ci |
| collation_server | utf8_general_ci |
| completion_type | 0 |
| concurrent_insert | 1 |
| connect_timeout | 5