Incorrect string value: ’\xF0\x9F\x8E\xB6\xF0\x9F...’ MySQL


SET NAMES utf8mb4;
ALTER DATABASE dreams_twitter CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;

Use the following command to check that the changes are made

SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';

 

Ref:
https://stackoverflow.com/questions/20411440/incorrect-string-value-xf0-x9f-x8e-xb6-xf0-x9f-mysql




Article ID: 102
Created On: Thu, Feb 3, 2022 at 10:50 PM
Last Updated On: Thu, Feb 3, 2022 at 10:50 PM
Authored by: Saeed Nobakht [[email protected]]

Online URL: https://www.navel.ir/article/incorrect-string-value-xf0-x9f-x8e-xb6-xf0-x9f-mysql-102.html