I created a custom block with Full HTML text format and CKeditor 5. When I add an emoji, I have a PHP error in my Drupal 9 logs :
Drupal\Core\Entity\EntityStorageException : SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\xF0\x9F\xAB\xB6 V...' for column z33ygz_app_drupal
.ymce_block_content__body
.body_value
at row 1: INSERT INTO "ymce_block_content__body" ("entity_id", "revision_id", "bundle", "delta", "langcode", "body_value", "body_summary", "body_format") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => 20 [:db_insert_placeholder_1] => 93 [:db_insert_placeholder_2] => basic [:db_insert_placeholder_3] => 0 [:db_insert_placeholder_4] => fr [:db_insert_placeholder_5] =>
Vous êtes producteur et vous proposez la vente à la ferme.
[:db_insert_placeholder_6] => [:db_insert_placeholder_7] => full_html ) dans Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (ligne 811 de /home/clients/588444ff5555fg4g4g4g5396/sites/www.example.com/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Why can't I use emoji in the text box ?