Closed (fixed)
Project:
Wysiwyg
Version:
7.x-2.2
Component:
Editor - CKEditor
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2013 at 15:36 UTC
Updated:
2 May 2013 at 20:50 UTC
My theme setting is <meta charset="utf-8" /> but the text is created with ISO-character standard?
Is this "normal" or have I missed something?
My question is if this can course problem, ie with ctools?
Comments
Comment #1
twodNo specific encoding standard is/can be set by the editors, since that information isn't stored alongside other field data, so I don't think this is really an issue for Wysiwyg module's queue. Drupal stores everything as UTF-8 encoded Unicode strings as far as I know and it does little to no automatic conversion.
However, if you're concerned about how certain characters get HTML-encoded, I've rarely had issues with that. The default settings we've set for CKEditor will for example handle the Swedish characters
åäöÅÄÖdirectly, instead of HTML-encoding them toåäöÅÄÖsince they are quite common, but it'll change the GreekΩ(and evenΩ) toΩ.I don't know what relation CTools would have to this.
Is that what you wanted to know?
Comment #2
göran commentedYes, its an good answer.
But the character ÅÄÖåäö is showing wrong - with
åäöÅÄÖin the text - as ISO-standard, not UTF8. (using theme AT_panels_everywhere + @font-your-face)Could it be happens by some settings in ckeditor or theme, or font-your-face, is missing - or have been set wrong by me?
However, its not a "technical" problem for the moment, it's only a very ugly text... = Because I am swedish ;)
Sorry if I ask in wrong forum, i will gladly change, soon as I know what forum to change the question to ;)
Did create a task here - see if it helps http://drupal.org/node/1971802
Comment #3
twodYeah, I can agree, being Swedish too. :)
The CKEditor setting entities_latin should prevent those characters from being HTML-encoded when set to
falseor0, which we do by default in Wysiwyg.You could confirm this by looking at the value in
Drupal.settings.wysiwyg.configs.ckeditor.formatFORMATNAME.entities_latinwhen editing a node. If that is true, or it doesn't exist, CKEditor will by default use HTML entities when encountering all Latin-1 characters (list at http://www.w3.org/TR/html4/sgml/entities.html#h-24.2.1)Comment #4
göran commentedThe problem for me was that if I use this setting in config.js file,:
I still did get the ISO-character letters, ie
ä....when adding text with letter outside ASCII, ie: ÅÄÖåäö.BUT I FOUND THE PROBLEM - I did loook in to the site with "Firebug" - When looking at the "code" directly, everything is ok.
So this problem is "false;" - created by "firebug" - sorry ;) - and thxs for your assist ;) / Tack!
Comment #5
twodWysiwyg does not load CKEditor's config.js file by default, you'd have to implement hook_wysiwyg_editor_settings_alter() and set the 'customConfig' setting to load it. (You could set the 'language' and 'entities_latin' setting directly in the hook though.)
I'm glad you found the problem. =)
Varsågod!
Comment #6.0
(not verified) commentedAdded code wrapper to make text visible