1

I got a text area attached to tineyMCE tool bar (ver 4.6.6). But when a symbol from tinyMCE tool bar or two consecutive spaces are added to the text area, and after the page is refreshed. The symbols or the double spaces are getting replaced by Â.

I've tried the suggestions provided in the tinyMCE forums and tried setting the entity_encoding: named, raw, numeric. But still none of this options are working. Can some one please help?

Asanga Dewaguru
  • 1,058
  • 2
  • 16
  • 31

1 Answers1

2

You need to set the encoding in tinymce. The encoding should happen when you are saving the text as well as rendering text inside tinymce.

In your case, the text you saved and re-rendered has different encodings.

Update your code with following. It worked for me.

tinymce.init({
  ....
  encoding: 'xml',
  entity_encoding: 'named+numeric+raw',
  entities: '160,nbsp'
});