📜  表情符号不存储在 codeigniter 中 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:16.649000             🧑  作者: Mango

代码示例1
1) Ensure you're using MYSQL 5.5 only then will you be able to change the 
collation to utf8mb4_something

2) Ensure table columns that are going to receive emoji have their collation 
set to utf8mb4_something

3) Edit your database.php config file

  $db['default']['char_set'] = 'utf8mb4';
  $db['default']['dbcollat'] = 'utf8mb4_unicode_ci';