Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
301 views
in Q2A Core by
I would like to use "Unicode" for mapping characters to smileys. But it seems Q2A filter is removing them. Is there any issue in doing this?

http://apps.timwhitlock.info/emoji/tables/unicode
Q2A version: 1.8

1 Answer

+3 votes
by
selected by
 
Best answer

The answer to your question is here: http://www.question2answer.org/qa/28769?show=28769#q28769

In a recent commit a function was implemented to remove those characters from the core.

If you are not using MySQL 5.5.3+  or maybe you don't want to change your database structure you might also consider switching those characters to HTML before storing them. E.G.: 😁. A filter module should do the trick.

by
Thank you very much. That should do for me :)
by
Hi pupi, can you please tell me which function I have to modify in the core to use utf8mb4? (I have already changed the Database)
by
Check qa_remove_utf8mb4(). Just replace it with:

function qa_remove_utf8mb4($string)
{
    return $string;
}

I think that should be it (appealing to my memory!)
by
Thank you very much. That worked great (y)
...