[Codeigniter-users] 日本語版作成について

Back to archive index

木下 敏夫 kino****@tktoo*****
2007年 12月 9日 (日) 18:11:48 JST


木下です。

もっと簡単でコアファイルを弄らない方法としては
system/database/drivers/mysql
を
system/database/drivers/mysql_euc-jp
system/database/drivers/mysql_sjis
system/database/drivers/mysql_utf8
等として必要な修正を行った上で

system/application/config/database.php
で
$db['default']['dbdriver'] = "mysql";
となっているところを
$db['default']['dbdriver'] = "mysql_utf8";
と変更する。

ではどうでしょう?

変更が最小限に抑えられるのと同時に
DBへのアクセス時に mb_convert でコード変換を入れてしまう等の
処置を入れてしまうこともできると思います。



-- 
木下敏夫
mailto:kino****@tktoo*****
http://www.tktools.jp/
http://www.oidc.jp/bmb/index.php?topic=-m-D14




Codeigniter-users メーリングリストの案内
Back to archive index