This site auto-deletes emoji

Discussion in 'Site Discussion' started by Pocket, Jun 13, 2016.

  1. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,217
    Why is that? I tried to add a thumbs-up to a post recently because we don't have an emoticon for it, and it just automatically deleted it from the post. Is Xenforo seriously not compatible with UTF-16? I can post emoji on PHPBB boards just fine.
     
  2. Crash

    aa Crash func_nerd

    Messages:
    3,148
    Positive Ratings:
    4,746
    I don't know if it's intended or not but thank you, @Geit
     
    • Agree Agree x 1
  3. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    597
    Positive Ratings:
    1,112
    Xenforo is not UTF-8 compatible by default and strips all code points in the emoji range. Mainly because most MYSQL installations didn't support true UTF-8 when it was being designed. It's not a difficult fix, and I'm not entirely sure why they didn't use the same method as VBulletin (convert all invalid codepoints to html entities), but it's not one I'm willing to make atm.

    https://xenforo.com/community/threads/true-utf-8-support-mysql-utf8mb4.90122/
     
  4. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,217
    Not even UTF-8? So what does it use, raw ASCII?
     
  5. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    597
    Positive Ratings:
    1,112
    It's UTF8, just not UTF8MB4 (4 byte codepoints), which is what's required for emoji. It's MySQL that doesn't support it, if you read through the link I gave.
     
  6. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    Can we have the google hangouts emoji sitewide?
    They are the best
    [​IMG]
     
    • Funny Funny x 2