Unable to see emoji on page description and text content
Bug #1895259 reported by
Heena Agheda
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mahara | ||||||
20.10 |
Fix Released
|
Medium
|
Heena Agheda |
Bug Description
- exact version of Mahara - 20.04 - master branch
- operating system - Ubuntu 18.04.5 LTS
- database - MySQL 5.7
Emoji's are turning into '?' while adding them on 'Page description' of Page.
Also When you add the New Block -> Content type -> Text - in 'Block content' adding emoji removes all content of the block. Its stored in database but because its converted into '?', content of serialized not matching with content length.
Changed in mahara: | |
status: | Confirmed → In Progress |
assignee: | nobody → Heena Agheda (hdagheda) |
Changed in mahara: | |
milestone: | 20.10.0 → 20.10rc2 |
Changed in mahara: | |
status: | In Progress → Fix Committed |
no longer affects: | mahara/21.04 |
no longer affects: | mahara |
To post a comment you must log in.
I have changed table collation and field character set:
ALTER TABLE block_instance CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE block_instance modify configdata text charset utf8mb4;
ALTER TABLE view CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE view modify description text charset utf8mb4;
Also change line:1751 in /htdocs/lib/dml.php unicode_ ci");
$db->_Execute("SET NAMES utf8mb4 COLLATE utf8mb4_