Changeset 17559


Ignore:
Timestamp:
2008/08/26 18:11:50 (13 years ago)
Author:
Seasoft
Message:

MySQLの文字化け対策。(my.cnf の変更を不要に。)
 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=1438&forum=2&post_id=9834#forumpost9834 の lemonjp 様の投稿を参考。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/SC_DbConn.php

    r17153 r17559  
    6262            } 
    6363        } 
     64         
     65        if (DB_TYPE == 'mysql') { 
     66            $objDbConn->query('SET NAMES utf8'); 
     67        } 
     68         
    6469        $this->conn = $objDbConn; 
    6570        $this->error_mail_to = DB_ERROR_MAIL_TO; 
Note: See TracChangeset for help on using the changeset viewer.