mysql 的 utf8 不支持 emoji,需要修改设置为utf8mb4

<?php
    'mysql' => [
        'charset'   => 'utf8mb4',
        'collation' => 'utf8mb4_general_ci',
        ...
    ]
?>

utf8mb4 is a superset of utf8
MySQL乱码问题以及utf8mb4字符集

相关文章:

  • 2022-12-23
  • 2021-05-27
  • 2021-12-08
  • 2021-11-26
  • 2021-10-07
  • 2021-05-26
  • 2021-04-06
猜你喜欢
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-01-11
相关资源
相似解决方案