Welcome Guest, Not a member yet? Register   Sign In
how to set up mysql_query("SET NAMES 'utf8'"); in codeigniter?
#4

[eluser]searain[/eluser]
You mean in system/database/DB.php
Code:
if ($DB->autoinit == TRUE)
    {
        $DB->initialize();
    }
    
    $DB->simple_query('SET NAMES \'utf8\''); //just add this line here, and that is all I have to do?

    return $DB;

This will require us to change the file outside the application folder. Would that be a problem in the future when we update the codeigniter (we can document these changes for the future update if have to)? Any other ways that we can do the same such as add/edit some files in the application folder, so without worrying about codeigniter update?

Or I don't have to worry about it in the first place.

Thanks!


Messages In This Thread
how to set up mysql_query("SET NAMES 'utf8'"); in codeigniter? - by El Forum - 01-20-2010, 04:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB