Add-on to work on newer versions.
After doing the above procedure, edit the file qa-include/util/string.php
Search for:
function qa_remove_utf8mb4($string)
{
and add the line: return $string;
at the beginning of the function
it should look like this:
function qa_remove_utf8mb4($string)
{
return $string;
See how it should look below:
BEFORE:
function qa_remove_utf8mb4($string)
{
return preg_replace('%(?:
\xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3
| [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15
| \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16
)%xs', '', $string);
}
AFTER:
function qa_remove_utf8mb4($string)
{
return $string;
return preg_replace('%(?:
\xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3
| [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15
| \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16
)%xs', '', $string);
}
Okay, now test sending emojis hahaha, the emoji will be enabled in any area of the site. See the before and after changes on my website:
Before, after doing just the procedure of the answer above:
https://i.imgur.com/dMHzuRW.jpg
After doing the above answer procedure and the procedure in the file: qa-include/util/string.php ->
https://i.imgur.com/QKxj3DA.png e
https://i.imgur.com/A95GrzZ.png
I hope it helps!