How can I let the MySQL InnoDB support the new Unicode character set, such as \U0001f3b8.
The char \U0001f3b8 is a GUITAR which is generated by iPhone’s input method.
The problem is that it cannot be saved in MySQL DB.
The column type that saved is VARCHAR, I have been tried to change to TEXT, still not working.
The Exception is :
Warning: Incorrect string value: ‘\xF0\x9F\x8E\xB8’ for column
‘message’ at row 1
BTW : My working environment is python + Django
I assume that new unicode character set means full UTF-8 support. You need to change your table/column collations to one that include
utf8mb4encoding. Good oldutf8in an incomplete implementation that only supports up to three bytes. You need MySQL/5.5 for that.