If you cannot change the character set of the database, and cannot change the my.cnf, I know only the following method.
1. Change the charset of tables of MODx from Default dec8 to utf8.
Export MODx tables to sql file with phpMyAdmin.
change the DEFAULT CHARSET to utf8 at all tables in the sql file
import the sql file.
2. Send "SET NAMES utf8" from MODx to MySQL just after connecting.
for back end. manager/index.php line 136-139
} else {
+ mysql_query("SET NAMES utf8;");
mysql_select_db($dbase);
}
for front end. manager/include/extenders/dbapi.mysql.class.inc.php line 87-90
exit;
} else {
+ mysql_query("SET NAMES utf8;");
$dbase = str_replace('`', '', $dbase); // remove the `` chars
if (!@ mysql_select_db($dbase)) {
Do not you think this method to be troublesome than rewriting my.cnf?
If the database consists of utf8, it is simple.