新規DBを下記のように設定します。
MySQL の文字セット: UTF-8 Unicode (utf8)
MySQL 接続照合順序: UTF-8 Unicode_ci
作成後に変更しても直らないので再インストールになります。
■PHP MyAdminで文字コードを utf8_general_ci に変更
※PHP MyAdminでデータベースを選択後、操作タブ→照合順序 で変更可能
↓
■文字化けが直っていればOK
ですが、もしその手順でインストールしていた、やってみたが直っていなければ下記の手順も試してみましょう。
■.htaccessに、
AddHandler .php
suPHP_ConfigPath
■php.iniを、.htaccessと一緒に指定した階層に置く。
参考サイト↓
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=flat&order=ASC&topic_id=9044&forum=10
もう一つの方法が
■下記のUTF-8の部分が別の物になっていれば、修正してからインストール
/data/class/SC_Query.php の79行目、
//$this->conn->setCharset(CHAR_CODE);
$this->conn->setCharset(‘utf8′);
/data/module\MDB2/Driver/mysql.php の539行目、
//if (!empty($this->dsn[‘charset’])) {
//$result = $this->setCharset($this->dsn[‘charset’], $connection);
$result = $this->setCharset(‘utf8′, $connection);
if (PEAR::isError($result)) {
$this->disconnect(false);
return $result;
}
//}
参考サイト↓
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=7678&forum=2&post_id=37349