Problems with utf8 again and again
Posted: Mon Mar 09, 2009 12:24 pm
Hello,
we are having problems with installation of CMSMS in Russian board again and again. The problem is that database collation does not match the connection encoding. I know that this can be corrected by uncommenting set names line in include.php But the CMSMS newbies not.
1. They just give up with CMSMS immediately after installation because this issue. (They say they have/had no problems with other CMS)
2. If the browser displays the site correctly, they just start to add their content and corrupt the database sending latin content to utf-database. It is possible but very tricky to repair the database encoding afterwards.
Probably a solution for this problem. Uncomment the line for mysql database and default_encoding='utf-8' in the next release. E.g.
Probably you cannot see a large issue in it. It is because you make your site in English. For other character sets this is really a big problem and it costs much time to figure out and solve the problem.
Thank you,
Sonya
we are having problems with installation of CMSMS in Russian board again and again. The problem is that database collation does not match the connection encoding. I know that this can be corrected by uncommenting set names line in include.php But the CMSMS newbies not.
1. They just give up with CMSMS immediately after installation because this issue. (They say they have/had no problems with other CMS)
2. If the browser displays the site correctly, they just start to add their content and corrupt the database sending latin content to utf-database. It is possible but very tricky to repair the database encoding afterwards.
Probably a solution for this problem. Uncomment the line for mysql database and default_encoding='utf-8' in the next release. E.g.
Code: Select all
if ($cmsdb->dbtype == 'mysql' && $config['default_encoding'] == 'utf-8') {
$cmsdb->Execute('set names utf-8'); // database connection with utf-8
} else {
# $cmsdb->Execute('set names utf-8'); // database connection with utf-8
}
Thank you,
Sonya