[eluser]Sbioko[/eluser]
Ok, there is another solution, if you don't want to change system files. It is normal. You need just put this code into your constructor of controller:
Code:
$this->db->simple_query('SET NAMES \'utf-8\'');
And it will do this operation every time, when your controller executes.
BUT, there is one small problem. Don't forget about database caching. If it turned on, this mysql query will be done only 1 time. So, before running this query you must do this:
Code:
$this->db->cache_delete($this->router->fetch_class(), $this->router->fetch_method());
So, here is a complete code:
Code:
<?php
class Example extends Controller {
function Example()
{
parent::Controller();
$this->db->cache_delete($this->router->fetch_class(), $this->router->fetch_method());
$this->db->simple_query('SET NAMES \'utf-8\'');
}
// Your methods
}
Waiting for your response :-)