Editor is too clever! - Post ID 109129

User 120072 Photo


Registered User
6 posts

Why does my most recent HTML editor (build 305) change my special characters back to normal characters? I type in £ or • and lo and behold, after saving I am presented with £ and • neither of which display correctly in the browser?
User 2000538 Photo


Registered User
1,392 posts

Are you working in Code Editor mode or Visual Editor mode?
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 463058 Photo


Ambassador
1,086 posts
Online Now

You may have this meta tag in the head of the page:
<meta http-equiv="content-type" content="text/html;charset=utf-8">


If so, then change that "utf-8" part so you have this:
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">

User 629005 Photo


Ambassador
2,174 posts

tassietiger wrote:
Are you working in Code Editor mode or Visual Editor mode?


Or 'maybe' switching between the two?
Living the dream, stocking the cream :D
User 603315 Photo


Registered User
938 posts

What I couldn't get when you put "£" character in the editor, it just doesn't work. So I had to write it out etc. It's not really much of a problem, I just thought it was because CC is a USA company and not catering for the English :)
User 38401 Photo


Senior Advisor
10,951 posts

are you guys using the "character" tab to enter your characters? If not, try that and see if it works that way? If so then ... never mind :P
User 345577 Photo


Registered User
373 posts

"It's not really much of a problem, I just thought it was because CC is a USA company and not catering for the English."

It really doesn't have much to do CC's country-of-origin. Fact is, the British Pound Sterling symbol is defined in HTML as "&pound;"...
User 120072 Photo


Registered User
6 posts

Re Cary's response above - CC has automatically inserted 'charset-us-ascii' in the web page that gives me a problem. I've changed it as you suggested and it seems to work fine. The editor still changes &pound; to £ but it displays correctly on the live page.

Incidentally, the character does change when I switch from code to visual editor.

On a similar vein - on closer examination CC does set up a new page with the charset = utf-8, but I note that some of my older pages, written using versions of the editor some time ago have the charset = unicode. Is there somewhere to set a default?

Thanks for all the responses!
User 2000538 Photo


Registered User
1,392 posts

John Pryor wrote:


Incidentally, the character does change when I switch from code to visual editor.


Part of your problem may be this switching. HTML Editor is not designed to be able to switch between the two. You need to choose one or the other and stick with that choice as they are coded differently and switching between the two will muck up your code.

I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 463058 Photo


Ambassador
1,086 posts
Online Now

John Pryor wrote:
On a similar vein - on closer examination CC does set up a new page with the charset = utf-8, but I note that some of my older pages, written using versions of the editor some time ago have the charset = unicode. Is there somewhere to set a default?


Unfortunately, no. I go to "Document" > "Document Properties..." and then select "Western Alphabet" for the Charset, if I need to change the specified character set.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.