Welcome Guest, Not a member yet? Register   Sign In
Setting charset and collation on every query, is it neccessary and can I suppress it?
#9

[eluser]InsiteFX[/eluser]
You can try the below, not tested.
But this is still telling me that your database is using the latin1_swedish_ci collation, this is the number one problem that causes this error for SET NAMES.

Run it before you do other queries.
Code:
$this->db->query('SET NAMES '.$this->db->escape_str("utf8");

InsiteFX


Messages In This Thread
Setting charset and collation on every query, is it neccessary and can I suppress it? - by El Forum - 03-29-2011, 10:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB