Γ°ΕΈΛΕ
Mojibake for π
. Interpreting the first as latin1, you get hex F09F988A
, which is the six UTF-8
for this Emoji.
(Note: UTF-8
outside MySQL is equivalent utf8mb4
inside MySQL.)
In MySQL, you should have a column / table specified with CHARACTER SET utf8mb4
. You must also indicate that the stored / retrieved data is encoded utf8mb4
. Note: utf8
not enough.
a SELECT HEX(col) FROM ...
, , Emoji. , latin1
, , utf8mb4. CHARACTER SET latin1
, UTF-8; . , VARCHAR(111) CHARACTER SET latin1 NOT NULL
, ALTER:
ALTER TABLE tbl MODIFY COLUMN col VARBINARY(111) NOT NULL;
ALTER TABLE tbl MODIFY COLUMN col VARCHAR(111) CHARACTER SET utf8mb4 NOT NULL;
.
, : node.js:
var connection = mysql.createConnection({ ... , charset : 'utf8mb4'});