The last year I´ve seen an increase in mysql errors like "Incorrect string value 'xF0 ...' in the logs.
Many users would like to use native emojis provided in Android and iOS I guess.
I´ve searched around phpbb for a correct solution but not found what I´m looking for. Can someone link to a KB or topic where there is a correct workaround for this?
If not, I have tested a workaround on my testserver (mysql + 5.5 ...) and it is working, I dont know if this fix has any drawbacks though so therefor, I would like to have feedback for it.
I ran this on the db:
Code: Select all
ALTER TABLE `phpbb_posts` CHANGE `post_text` `post_text` MEDIUMTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL;I changed:
Code: Select all
@mysqli_query($this->db_connect_id, "SET NAMES 'utf8'");Code: Select all
@mysqli_query($this->db_connect_id, "SET NAMES 'utf8mb4'");But are there any drawbacks in doing this?
Thanks!
