HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Error when posting a comment with a smiley face
denn
New
Hi! I have a problem when posting a comment with a smiley face. Error writing to the database
Incorrect string value: '\xF0\x9F\x99\x84"}...' for column `forum`.`GDN_Comment`.`Body` at row 1|Gdn_Database|Query|insert `GDN_Comment` (`Body`, `DiscussionID`, `InsertUserID`, `Format`, `DateInserted`, `InsertIPAddress`) values (:Body, :DiscussionID, :InsertUserID, :Format, :DateInserted, :InsertIPAddress)
vanilla version: 3.3
charset GDN_Comment utf8mb4_unicode_ci
mariadb 10.4.10
Help me solve the problem. Thank You 😊
0
Comments
I found a solution. Maybe someone will need it.
[mysqld]
collation-server=utf8mb4_unicode_ci
init-connect='SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci'
character-set-server=utf8mb4
[client]
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4