Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32904

smiley emoji (F09F9883) valid in utf8 but not utf8mb4

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.2.44, 10.4.32, 10.6.16
    • N/A
    • Character Sets
    • None

    Description

      Our smiley emoj goes to question mark in utf8mb4 but ok in mb3.

      MariaDB [(none)]> select hex('😃'),@@character_set_client;
      +----------+------------------------+
      | hex('?') | @@character_set_client |
      +----------+------------------------+
      | 3F       | utf8mb4                |
      +----------+------------------------+
      1 row in set (0.000 sec)
       
      MariaDB [(none)]> set character_set_client='utf8';
      Query OK, 0 rows affected (0.000 sec)
       
      MariaDB [(none)]> select hex('😃'),@@character_set_client;
      +-------------------------+------------------------+
      | hex('\xF0\x9F\x98\x83') | @@character_set_client |
      +-------------------------+------------------------+
      | F09F9883                | utf8                   |
      +-------------------------+------------------------+
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.