Special Character in RTE are not saving as HTML Unicode in Source Edit in CQ | Community
Skip to main content
Level 2
October 16, 2015
Solved

Special Character in RTE are not saving as HTML Unicode in Source Edit in CQ

  • October 16, 2015
  • 1 reply
  • 656 views

Hi All, 

we are customizing special character by misctoolplugin.js. There is an issue regarding this. Whenever we are saving an special charter then in source edit its not getting saved as HTML code, rather as the special character. 

like @ is saving as @ not its HTML code. 

the behavior is normal only, means OOB also behaves in the same way. But we have requirement to store it as HTML code only. 

Whenever we click on the button for special character- at the end     execCommand("insertHTML", false, specialCharater);   method is called that means we call Command insertHTML and that command is only doing this. 

note: value of specialCharacter is HTML code only of that particular selected special character. 

So please tell if there is any other method/command we can use instead of insertHTML or anything else that will help us in achieving this. 

Please help. 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

It is expected.  All CQ5 pages are delivered with content encoding utf-8, any strings submitted to CQ and stored in CRX are utf-8.  From internationalization recommends to use an encoding that allows you to represent the characters in their normal form except for exceptional cases.

http://www.w3.org/International/

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

It is expected.  All CQ5 pages are delivered with content encoding utf-8, any strings submitted to CQ and stored in CRX are utf-8.  From internationalization recommends to use an encoding that allows you to represent the characters in their normal form except for exceptional cases.

http://www.w3.org/International/