An error occurred while inserting the database emoticons.
First you have to look at this blog http://blog.csdn.net/u011575570/article/details/47048101
Then handle the insert emoticons in the database.
The processing of emoticon is just now utf8, because it supports almost all characters, almost cannot be managed.
Change the previously modified location to utf8mb4.
In linux, find my. cnf file (usually in/etc, you can use find/-name my. cnf) open it and find add character-set-server = utf8mb4 and in [mysqld] (set utf8mb4 encoding when connecting to mysql database) init_connect = 'set NAMES utf8mb4 'and add character-SET-client-handshake = FALSE. Find [mysql], add default-character-set = utf8mb4, and restart mysql, query show variables like 'character % ';
Now, it's okay to insert an expression, but it just doesn't show it. You don't know what's going on. If you have any knowledge, you can contact us for further discussion. Thank you.
If it is java, You need to import the mysql-connector-java-5.1.35-bin.jar package before inserting
Download http://download.csdn.net/detail/u011575570/9059079
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.