Search by

blueprint3d / module-allow-utf8mb4

stu583

Unlocks full UTF8MB4 database support for Magento 2 (Emojis and 4-byte characters)

Package info

github.com/BluePrint3D-Dev/module-allow-utf8mb4

Documentation

Language:HTML

Type:magento2-module

pkg:composer/blueprint3d/module-allow-utf8mb4

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.6 2026-09-12 14:31 UTC

This package is auto-updated.

Last update: 2026-11-21 23:06:11 UTC


README

Magento 2.4.x PHP 8.1–8.5 MySQL 8.4+ Licence

Converts the key Magento tables to utf8mb4, so emojis, extended multilingual characters and other 4-byte Unicode can be used anywhere in your store without being mangled.

⚠️ Requires MySQL 8.4+ (or an equivalent modern MariaDB). Below MySQL 8.0.29, Magento's declarative schema can't keep these columns on utf8mb4 across repeated setup:upgrade runs, and this module's one-shot patch alone won't keep it fixed. See The Fine Print before installing on an older database.

🛑 The Problem

Older Magento 2 installs set MySQL tables to the legacy 3-byte utf8 (utf8mb3) character set. Save a 4-byte character, like an emoji 🔥 or a rare Unicode symbol, and MySQL cuts the string short or replaces your content with ???.

🛠️ The Solution

A targeted Data Patch converts the tables that matter (products, CMS pages and blocks, customer data) to utf8mb4 with the utf8mb4_unicode_ci collation. The result: emojis and full 4-byte Unicode across the frontend and admin.

✨ Features

  • Emoji compatibility: emojis in product descriptions, category titles and CMS blocks.
  • Zero core overrides: built with native Magento Data Patches.
  • Applied on deploy: the conversion runs as part of setup:upgrade.
  • Data safe: changes character set and collation without truncating existing data.

📋 Requirements

  • MySQL 8.4+ or a modern MariaDB (see below).

📦 Installation

composer require blueprint3d/module-allow-utf8mb4
bin/magento module:enable BluePrint3D_AllowUtf8mb4
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

⚙️ Configuration

None. Once setup:upgrade has run, go to Content > Blocks or Catalog > Products and start pasting emojis. 🚀🍕🛒

🔍 The Fine Print

Magento's declarative schema has no column-level charset/collation attribute (only table-level), so on MySQL below 8.0.29 every setup:upgrade regenerates these columns with Magento's legacy default charset, undoing the conversion whatever this module declares. That can't be fixed from db_schema.xml alone.

On MySQL 8.4+ (or a modern MariaDB), Magento itself defaults these columns to utf8mb4 on every setup:upgrade, so this module's one-shot patch is all you need. On an older MySQL, upgrade the database first.

📖 Documentation

Full setup guide: allow-utf8mb4-setup-guide.pdf.

📜 Licence & Support

Copyright © 2026 BluePrint3D Ltd. All rights reserved.

Free to use on personal and commercial stores. Resale, redistribution or sublicensing of this source code, modified or unmodified, for direct financial gain is prohibited. Full terms in LICENSE.txt.