StrangeAttractor Posted July 31, 2014 Share Posted July 31, 2014 (edited) I run a Czech shop and we use a number of non-ASCII characters in Czech alphabet (like Š for SH, Ž for ZH, Č for CH, Ů for OO, Á for long A etc.). I have noticed that when I use these symbols in PrestaShop CMS pages it converts them to HTML entities (like š for Š, ý for Ý etc.). This sabotages the source code readability and searchability and makes the characters to take too much bytes (do I really have to use 8 bytes to encode a single letter?). So I am curious how can this behaviour be disabled and if there are any reasons why I should leave this as is. Help please. I prefer source code editing over using the WYSIWYG editor very much but this feature turns my whole source into unreadable crap every time I save it. Edited July 31, 2014 by StrangeAttractor (see edit history) Link to comment Share on other sites More sharing options...
misthero Posted August 1, 2014 Share Posted August 1, 2014 (edited) you don't need it if your enter it manually and your editor supports unicode Edited August 1, 2014 by misthero (see edit history) Link to comment Share on other sites More sharing options...
StrangeAttractor Posted August 4, 2014 Author Share Posted August 4, 2014 My editor supports unicode but once I copy-paste the text to PrestaShop's CMS editor, press Save (in PrestaShop CMS) the effect I have described is applied so next time I open the article in the CMS editor and view the source I see all symbols that can be replaced with HTML entities replaced so editing it in-place becomes pain. Link to comment Share on other sites More sharing options...
misthero Posted August 4, 2014 Share Posted August 4, 2014 I got it wron, I tought you where editing html directly without the editor, so your question really is: how I can disble entity conversion in tinymce editor? maybe this can help: http://www.tinymce.com/wiki.php/Configuration:entity_encoding try editing the file: /js/tinymce.inc.js adding: entity_encoding : "raw", Link to comment Share on other sites More sharing options...
StrangeAttractor Posted August 4, 2014 Author Share Posted August 4, 2014 Thanks, misthero, this has solved my problem. Link to comment Share on other sites More sharing options...
misthero Posted August 4, 2014 Share Posted August 4, 2014 happy to help remeber to mark this topic as solved prepending [sOLVED] to the topic title! Link to comment Share on other sites More sharing options...
Recommended Posts