I'm experiencing some problems with special characters. When a person tries to register on my site using for example the letter 'ö', I get this error message:
1366 - Incorrect string value: '\xF6m' for column 'username' at row 1
insert into phpbb3_users (username, username_clean, user_password) values ('Ström', 'Ström', '$H$9iK6K37VoHM//')
I understand the character settings could be the problem and when I check the database, I can see that some tables have collation:
latin1_swedish_ci
and some tables have collation (for example the table 'phpbb3_users' that is having problem in the example above):
utf8_bin
And when I check my MySql settings I see that I have these mixed settings:
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| 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 | latin1_swedish_ci |
| collation_server | latin1_swedish_ci
- What character_set do you recommend me to use? I have learned that changing character_set to utf8mb4 could solve the problem, but does my MySql version (5.1.4) support that?
- Were should I make character_set changes? In all instances of the /etc/my.cnf and all table collations?
Thanks.