Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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
false
or0
, which we do by default in Wysiwyg.You could confirm this by looking at the value in
Drupal.settings.wysiwyg.configs.ckeditor.formatFORMATNAME.entities_latin
when 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 CreditAttribution: 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) CreditAttribution: commentedAdded code wrapper to make text visible