Emojis in reviews. How to?

Moderator
Alates Lithuania
Liige alates

How to add emoji compatibility for this addon?

If someone adds emoji, it is shown as ???? in the review, but it is shown as emoji in the review confirmation email.

Curtain Guru
Alates Netherlands
Liige alates

Wich version are you running?

Moderator
Alates Lithuania
Liige alates

Last. Ok it seems there is one emoji existing in reviews. But not all.

Curtain Guru
Alates Netherlands
Liige alates

I see that this add-on needs an update.
So better to wait until Tim has updated this.
He will see this.
Reviews

Updated for Litecart 2.2.4

Compatible Versions: 2.2.4

tim
Founder
Alates Sweden
Liige alates
tim

To allow emojis to be stored in database go to Admin -> Languages -> Storage Encoding and convert all tables to a utf8mb4 collation.

Developer
Alates Slovak Republic
Liige alates

Version 2.6.2. In "Admin -> Languages -> Storage Encoding" I changed the encoding to "utf8mb4_unicode_ci, InnoDB" - it did not help.
Then in includes/config.inc.php I changed the line: define('DB_CONNECTION_CHARSET', 'utf8mb4'); - it also did not help.
As a result, in includes/app_header.inc.php at the very bottom I added the line:
database::query("SET NAMES 'utf8mb4'");
And it worked for me! Emoji started to display correctly.

Teie
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.