Welcome Guest, Not a member yet? Register   Sign In
CI 3.x - How to set database connection collation?
#3

PHP Code:
// application/config/database.php
$db['default']['char_set'] = 'utf8mb4';
$db['default']['dbcollat'] = 'utf8mb4_unicode_ci'

Also make sure that you set it on the datbase also.

Code:
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: CI 3.x - How to set database connection collation? - by InsiteFX - 03-02-2022, 04:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB