https://stackoverflow.com/questions/39463134/how-to-store-emoji-character-in-mysql-database

ALTER TABLE `yourtable` CHANGE `yourcolumn` `yourcolumn` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

php

$this->pdo = new PDO(“mysql:host=$ip;port=$port;dbname=$db;charset=utf8mb4”

By michael

Leave a Reply

Your email address will not be published. Required fields are marked *