1. Home
  2. Email Template Designer Pro
  3. Emoji / Unicode (utf8mb4) Support in HuntBee Extensions

Emoji / Unicode (utf8mb4) Support in HuntBee Extensions

HuntBee extensions fully support Unicode and emoji characters (for example 🚚 πŸ“¦ πŸ”’).
However, emoji support depends on your database configuration, not just the extension.

If emojis are saved or displayed as ????, please follow the steps below.


1. Check Database Table Collation (Very Important)

Emoji characters require utf8mb4 (4-byte UTF-8).
Older utf8 (utf8mb3) does not support emojis.

How to check (using phpMyAdmin)

  1. Open phpMyAdmin
  2. Select your OpenCart database
  3. Locate the HuntBee table (for example: oc_hb_build_template)
  4. Click the Structure tab
  5. Check the Collation column

Correct value

utf8mb4_unicode_ci

If the table is NOT utf8mb4

Run the following SQL query (replace table prefix if needed):

ALTER TABLE oc_hb_build_template
CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;

Repeat this for other HuntBee tables if required.

βœ… This change is safe and affects only the selected table.


2. Database Connection Charset (Required for Reading & Writing Emojis)

Even if the table is utf8mb4, emojis will still break if OpenCart uses a utf8 database connection.

OpenCart 3.x uses utf8 by default, which does not support emojis.

Solution (Core File Change)

You need to update the database connection charset to utf8mb4.

File to edit

system/library/db/mysqli.php

Find this line (connection creation)

$this->connection->set_charset('utf8');

Update it to

$this->connection->set_charset('utf8mb4');

That’s it.


3. Clear Cache & Test

After making the changes:

  1. Clear OpenCart cache
  2. Re-save the template or content
  3. Test with emojis like:🚚 πŸ“¦ πŸ”’

They should now:

  • Save correctly
  • Display correctly
  • Work in email bodies, popups, notifications, etc.

Important Notes

  • This is not a bug in HuntBee extensions
  • This is a known limitation of OpenCart 3.x default database settings
  • Emoji support requires both:
    • utf8mb4 table collation
    • utf8mb4 database connection

Need Help?

If you’re unsure which tables to convert or need confirmation, feel free to contact support.