Tech Tip July 2017 – Moodle 3.3 Emojis and utf8mb4
If you are considering upgrading to Moodle 3.3 there are a few things to be aware of…
As with all new versions of Moodle, it’s important to check the usual minimum requirements in terms of webserver, database, and PHP version.
One things that caught my eye when tesing Moodle 3.3 is the inclusion of support for Emojis – ideograms and smileys used in electronic messages such as Facebook and Apple Messages and web pages (a development of the more simplistic emoticons).
I’m not a huge user/fan in particular, and a simple smiley face is often enough for me 🙂  But the inclusion of Emojis is Moodle 3.3 does force administrators to ensure, if using MySQL, that the database has support for this feature.
Note that you don’t have to enable this for Moodle 3.3 to work, but some users, maybe younger users(?) may appreciate the Emojis.
Administrators need to understand that this feature requires the database to be in –collation=utf8mb4_unicode_ci format. There is a script within Moodle to convert the database, but as mentioned in the official documentation this can be slow. On a small test site it took me nearly a minute … and there was almost nothing in the database! For those with multiple Gb size databases, it’s going to be vital to backup the DB first, and schedule some downtime for the upgrade to take place.
Additionally, administrators need to alter the Moodle config.php file, and MySQL configuration file – my.cnf.
Whilst these changes are relatively simple, for those non-technical enthusiasts who host their own sites, or use shared hosting, this could create real challenges.
We also found things a little awkward on Ubuntu as the my.conf file was actually a series of symlinks as a consequence of upgrading from Ubuntu server from LTS14 to LTS16 – something to be aware of.
The official documentation for Emojis and full unicode support is here:
https://docs.moodle.org/33/en/MySQL_full_unicode_support
There are also some useful discussions taking place in the Moodle.org Forums on this subject, such as:
https://moodle.org/mod/forum/discuss.php?d=353361
But look around for other more recent threads too 🙂
- H5P periodic table – 8th September 2023
- Moodle 4.0 – 15th May 2022
- Moodle 4.0 other highlights – 14th May 2022
Wow – sounds confusing ! But if it means we can do Emojis I’m happy ! lol