An error occurred while inserting WeChat expressions into the database.

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.