blueprint3d / module-allow-utf8mb4
Unlocks full UTF8MB4 database support for Magento 2 (Emojis and 4-byte characters)
Package info
github.com/BluePrint3D-Dev/module-allow-utf8mb4
Language:HTML
Type:magento2-module
pkg:composer/blueprint3d/module-allow-utf8mb4
Requires
- php: >=8.1.0 <8.6.0
- magento/framework: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
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
utf8mb4across repeatedsetup:upgraderuns, 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.
- Website: blueprint3d.dev
- Support: support@blueprint3d.dev
- Company: BluePrint3D Ltd, Company No. 13473806