This site auto-deletes emoji

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
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.
 

Geit

💜 I probably broke it 💜
aa
May 28, 2009
598
1,161
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.

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/
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
Not even UTF-8? So what does it use, raw ASCII?
 

Geit

💜 I probably broke it 💜
aa
May 28, 2009
598
1,161
Not even UTF-8? So what does it use, raw ASCII?

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.
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Can we have the google hangouts emoji sitewide?
They are the best
eed744c7a33452b7403538d46a13f4e7.png