This error occurs because we adding symbols utf8mb4 in database with encoding utf8 (utf8mb3 or other).
Decision
- Change charset in database connection. For example pdo in php:
$this->pdo = new \PDO('mysql:dbname=db;host=localhost;charset=utf8mb4;', 'user', 'password', [\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION]);
2. Change Charset and Collation in table and table fields to utf8mb4 and utf8mb4_unicode.