Adding non-ASCII characters to TinyMCE
I've added a custom character (lower case 'a' with a macron - Māori) into the TinyMCE editor, it shows up fine in the TinyMCE editor window - until I hit the update button at least.
After I hit update it turns the character into a question mark.
Now, my DB encoding and collation are set to UTF-8 as per other threads in the forum, plus adding the html entity code
in an HTML block works fine (see attached image).
So my question is how is the content block input sanitised and filtered?
I see the textarea/controller.php file calls the htmLawed.php third party library, so I thought adding the html entity into the allowed array in the htmLawed.php file would be a good place to start
'diams'=>'9830', 'amac'=>'257', 'apos'=>'39',
but this doesn't seem to make any difference?
Anyone have any ideas?
I wrote a topic specifically for such problems.
Hope it helps you!
But entity_encoding : "raw" didn't work, I had to use entity_encoding : "numeric"