Messed up encoding
Posted: Wed Jun 03, 2009 4:48 pm
Hi,
I've "inherited" a relatively large site with CMSMS. I have database dump in utf-8 (and by utf-8 I mean utf-8, because I had to fix it from random encoding "mess") from version 1.4.1. Unfortunately, CMSMS doesn't seem to handle utf-8 properly on my server.
The data in the database is in correct encoding (I checked both from phpmyadmin and mysql command line via ssh), but CMSMS is somehow messing character sets (e.g. displays wrong characters and inserts text in wrong encoding into the database). To check that it's not a problem of the old installation, I tried 1.5.4 clean installation.
Again, whatever I input in the admin (in utf-8) ends up in the database (utf8_general_ci) in some other encoding (wrong characters, or one character replaced by multiple ones). Other software, either mine, or real CMS like Drupal (sorry
) work flawless with no problems with utf-8.
Now, this is usually fixed by executing SET NAMES "UTF-8" before any queries, but I'm either doing it in a wrong place or it is overridden by CMSMS. Any suggestions?
I've "inherited" a relatively large site with CMSMS. I have database dump in utf-8 (and by utf-8 I mean utf-8, because I had to fix it from random encoding "mess") from version 1.4.1. Unfortunately, CMSMS doesn't seem to handle utf-8 properly on my server.
The data in the database is in correct encoding (I checked both from phpmyadmin and mysql command line via ssh), but CMSMS is somehow messing character sets (e.g. displays wrong characters and inserts text in wrong encoding into the database). To check that it's not a problem of the old installation, I tried 1.5.4 clean installation.
Again, whatever I input in the admin (in utf-8) ends up in the database (utf8_general_ci) in some other encoding (wrong characters, or one character replaced by multiple ones). Other software, either mine, or real CMS like Drupal (sorry

Now, this is usually fixed by executing SET NAMES "UTF-8" before any queries, but I'm either doing it in a wrong place or it is overridden by CMSMS. Any suggestions?