Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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/

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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/