Jump to content

Emojis Kill Message Import


Recommended Posts

So, we pride ourselves on getting back to people quickly with answers, so when we got this message saying they hadn't heard back from us, it was concerning all the way to the top.  

 

image.png.4fc08b475abed9f57ebcdd46d727c8ee.png

 

We didn't really see anything TO answer, it seemed more of a statement just letting us know what they did... until I logged into the email account and checked the email itself and saw there was a lot more to it, but since they had added a emoji, it looks like it stopped importing.  Above is what we saw, below is what she sent (missing info in yellow highlighter):

image.png.e5ad451517b1029c6cac0ee9051e0f49.png

Since so many people use emojis anymore, this is a little scary on how many messages we only got part of their message.  

Is this a bug, or is there some way to stop this from happening?

 

 

 

Link to comment
Share on other sites

  • 5 months later...

I was facing a similar issue. I think it might be an issue with database configuration (default encodings, collation) since I've got slightly different results in different WHMCS installations (some truncated the message as Gary reported, others did not but rendered emoji as question marks).

The closest I've found to a solution is to enable the "Remove Extended UTF-8 Characters" option at Settings -> General Settings -> Localisation. As the name indicates, this removes any character outside Unicode's Basic Plane (anything with a code above 0xFFFF, including emoji), so even though the content will no longer be truncated, emoji will be missing (which can be a substantial problem of its own if you happen to work with emoji-ready domains but, for the most part, will be a lesser evil than randomly losing half of your client's reply).

Link to comment
Share on other sites

  • 3 months later...
On 12/18/2022 at 1:09 PM, pRieStaKos said:

https://docs.whmcs.com/Localisation_Tab#Remove_Extended_UTF-8_Characters
The right encoding for emojis is utf8mb4_unicode_ci.

Hey mate - I switched over to the recommended encoding, but my emojis still don't show up in my email template editor after saving - instead being replaced with "????"

Did I miss something? I applied the collation to all tables and columns...

Any further insight you can offer would be greatly appreciated. Cheers 🥂

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated