5
To reproduce it:
Mysql 4.1.7
XOOPS 2.0.9
APACHE 2.0.X
under my.cnf:
[client]
set-variable = default-character-set=utf8
set-variable = character_set_client=utf8
set-variable = character_set_connection=utf8
set-variable = character_set_results=utf8
[mysqld]
set-variable = default-character-set=utf8
under xoops->global.php:
define('_CHARSET', 'utf-8');
define("XOOPS_USE_MULTIBYTES", "1");
under httpd.conf:
AddDefaultCharset UTF-8
under xoops-site/class/database/mysqldatabase.php, function: connect, add the following before 'return true':
+ mysql_query("SET CHARACTER SET utf8", $this->conn);
1. create XOOPS database
2. grant permission and make sure PHP can connect to it.
3. install XOOPS as normal
4. after the installation, verify all tables are in UTF8, you should see the collation is utf8_general_ci
5. check your homepage, all modules are blank
e.g.(copy and paste the link in your browser):
http://www.angelfire.com/linux/franfran/xoopsblank.gifThank you.