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

TwoD’s picture

Assigned: Göran » Unassigned
Category: task » support

No 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 &aring;&auml;&ouml;&Aring;&Auml;&Ouml; since they are quite common, but it'll change the Greek Ω (and even &ohm;) to &Omega;.

I don't know what relation CTools would have to this.

Is that what you wanted to know?

Göran’s picture

Yes, its an good answer.
But the character ÅÄÖåäö is showing wrong - with &aring;&auml;&ouml;&Aring;&Auml;&Ouml; 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

TwoD’s picture

Yeah, I can agree, being Swedish too. :)

The CKEditor setting entities_latin should prevent those characters from being HTML-encoded when set to false or 0, 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)

Göran’s picture

The problem for me was that if I use this setting in config.js file,:

config.language = 'sv';
CKEDITOR.config.entities_latin = false; 

I still did get the ISO-character letters, ie &auml;.... 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!

TwoD’s picture

Status: Active » Fixed

Wysiwyg 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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Added code wrapper to make text visible