Iain Posted September 22, 2011 Share Posted September 22, 2011 Hi again, We've got a TinyMCE editor as our main content field. When we enter information that's been sent to us we keep getting the  character appearing. It seems to be when there are two spaces next to each other and TinyMCE tries to render them as " " - I've included some of the outputted HTML below... Any reasons why this might be happening? When we edit the HTML and remove the extra spaces it displays perfectly... Above average and continue to improve. Students of all abilities make good progress.</li> <li>The school has good teachers who work hard and set a good example. There are many examples of outstanding and good learning.</li> Link to comment Share on other sites More sharing options...
ryan Posted September 22, 2011 Share Posted September 22, 2011 What is the encoding of the document you are copying the text from? After pasting in the text, do you see these characters in TinyMCE (PW admin) or just on your website? If you see them in TinyMCE, do you only see them after saving the page, or do you see them immediately after pasting the text into the document? Based on your answers to the above, I think we'll be able to figure it out. Also, just to double check, look in your browser what character set it's using. In Chrome, it would be View > Encoding. In Firefox, View > Character Encoding. It should say "UTF-8"–let me know if it doesn't. Link to comment Share on other sites More sharing options...
Iain Posted September 23, 2011 Author Share Posted September 23, 2011 Hi Ryan, We're getting stuff in Word, but copying it into Notepad++ (which uses basic UTF-8 encoding and strips out all of Word's crappiness), then copying and pasting into the TinyMCE window. The characters don't show up in the editor at all, not in the HTML editor window nor the WYSIWYG, just when they're rendered onto the website. This comes up in both IE and Firefox which are using UTF-8 as well.. In fact I've just realised that you can type a word straight into the editor, put in 2 spaces before the next word and you get the same thing happening, so it's not a copy/paste problem I assume. Link to comment Share on other sites More sharing options...
ryan Posted September 23, 2011 Share Posted September 23, 2011 So far I can't duplicate this. Though a search in Google reveals that others have seen this with TinyMCE (in other CMSs), though not an obvious answer. Can you forward a URL to me that has these characters showing up in it? Post in here, or PM it to me if confidential. I want to have a look at what headers the server sends before the page get rendered. Link to comment Share on other sites More sharing options...
Soma Posted September 23, 2011 Share Posted September 23, 2011 May deinstall all custom modules? While at it, this is hard to see from the admin modules page. which are custom and which permanent or system related... any chance to improve that a little? Link to comment Share on other sites More sharing options...
Iain Posted September 23, 2011 Author Share Posted September 23, 2011 Thanks Ryan, I've sent you a PM. As for custom modules, we've got nothing plugged in. This is a pretty vanilla version we're running... Link to comment Share on other sites More sharing options...
ryan Posted September 23, 2011 Share Posted September 23, 2011 Got your PM– The encoding on that page is ISO-8859-1. Likely that's the default on your server in Apache, and since you aren't overriding it, it's taking control. You need to add this right after your opening <head> tag in your site's main/header template: <meta http-equiv="content-type" content="text/html; charset=utf-8" /> Link to comment Share on other sites More sharing options...
Iain Posted September 26, 2011 Author Share Posted September 26, 2011 Perfect, did just the job, thanks for the help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now