We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can I change the ExpressionEngine DB collation?

How Do I?

Out of Control's avatar
Out of Control
7 posts
one week ago
Out of Control's avatar Out of Control

Any reason EE uses

//'char_set' => 'utf8',
    //'dbcollat' => 'utf8_unicode_ci',

To add Emoji’s to posts I updated it to

'char_set' => 'utf8mb4',
    'dbcollat' => 'utf8mb4_unicode_ci',

in ee/ExpressionEngine/Service/Database/DBConfig.php. But it will be wiped on the next upgrade. Is there a way to fix this in user config, or … ?

       
Hop Studios's avatar
Hop Studios
483 posts
one week ago
Hop Studios's avatar Hop Studios

$config[’database’] = array ( ‘expressionengine’ => array ( ‘hostname’ => ‘mysql’, ‘username’ => ”, ‘password’ => ”, ‘database’ => ”, ‘dbdriver’ => ‘mysqli’, ‘dbprefix’ => ‘exp_’, ‘char_set’ => ‘utf8mb4’, ‘dbcollat’ => ‘utf8mb4_unicode_ci’, ‘pconnect’ => FALSE ), );

https://docs.expressionengine.com/latest/config/config.html#database

       
Out of Control's avatar
Out of Control
7 posts
one week ago
Out of Control's avatar Out of Control

Ha, I was reading too fast. Thank you.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.