MySQL support for iOS emoji emoticons

Source: Internet
Author: User

Reason:

The UTF-8 encoding can be two, three, and four bytes. The emoji expression is 4 bytes, while MySQL UTF8 encodes up to 3 bytes, so data cannot be plugged in.

Workaround:

Convert MySQL encoding from UTF8 to UTF8MB4

Steps:

1. Modify the MySQL configuration file My.ini

default-character-Set=utf8mb4character-set-SERVER=UTF8MB4

2. Join

[Client]port=3306default-character-Set=Utf8mb4[mysqld] Add character -Set-client-handshake= falsecollation-server= utf8mb4_general_ciinit_connect ='SET NAMES utf8mb4'

3. Restart MySQL

4. Change the input keyboard expression field encoding to Utf8mb4_general_ci

MySQL support for iOS emoji emoticons

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.