There's a strange problem here:
i have to write data from a CSV file into a mysql DB (default charset UTF-8)
when i read the CSV and print the query string on terminal (for debug purpose )the output is correct:
insert into orari (pv_id, day) values(5492, 'giovedì pomeriggio')
but when i run a select query with mysql client the result is weird:
*************************** 273. row ***************************
id: 28856
day: giovedì pomeriggio
pv_id: 5760
Same thing if i run the query on phpmyadmin.
The HTML output is correct, the charset is set to UTF-8 and the characters like àòù are correctly visualized.
* Edit * This is my mysql charset and collation settings:
SHOW VARIABLES LIKE 'c%';
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| collation_connection | utf8_general_ci |
| collation_database | utf8_general_ci |
| collation_server | utf8_general_ci |