It’s like a recurring nightmare for me…
I’m moving servers, and the database engines are slightly different:
Old setup (info from PHPmyadmin)
MySQL 4.1.12
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf8_general_ci
Table collation: latin1_swedish_ci
New setup (info from PHPmyadmin)
MySQL 5.0.32
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf8_general_ci
Table collation: latin1_swedish_ci
The story:
After encountering database encoding issues when dumping the DB, I used the database dump utility in the CP. The database dumped fine. I imported it on the new server, via the command line, with—default_character_encoding set to UTF-8, and it imported correctly. I can view the DB fine in PHPmyadmin, all the character encoding is correct. But when viewed on the front end, the High Ascii characters are corrupted.
So my guess is that the actual database connection between the CMS and the database is at fault. The difference between the MySQL connection collation and the table collation is worrying, but I don’t understand why it works on the old server.
Please help!
