Strange Character in blank line

7 posts by 4 authors in: Forums > CMS Builder
Last Post: October 22, 2008   (RSS)

By pcolvin - October 21, 2008

When I add a blank line in the WYSIWYG editor with the Enter key, I get the following:

Â

Fire Department Mount Joy

111 New Haven St

Mount Joy, PA 17552

Â

Each place there is an  is where I tried to insert a blank line. The HTML that is inserted is <p> </p>. If I replace this with a <br> it works fine. This would be ok, but I'm sure I will have users that want to use the Enter key to insert a place line.

Here is the full HTML for the above:
<p> </p>
<p>Fire Department Mount Joy</p>
<p>111 New Haven St</p>
<p>Mount Joy, PA 17552</p>
<p> </p>

The characters show up in Firefox 3.x and IE 7.x

Any help would be appreciated.

Re: [pcolvin] Strange Character in blank line

By _kate_ - October 21, 2008

Hi pcolvin,
I'm not sure what is causing that strange character, however when using the WYSIWYG editor the enter key will add a paragraph tag, however if you want to insert a line break instead <br> hold shift and hit enter.

I hope that helps! If you have any other questions feel free to ask :)

Re: [pcolvin] Strange Character in blank line

By Dave - October 21, 2008

Can you post a link to the url with the problem? It may be a charset issue.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Strange Character in blank line

Hi, Dave -

I've also experienced this problem. It's caused by the <p> </p> tag combination. TinyMCE always uses this combo to replace double <BR /> tags.

It doesn't matter if you try to edit the code (in the WYSIWYG HTML editor) it'll revert back to <p> </p> as soon as you save it.

In Firefox the result is the "Â" character mentioned above. In IE the character is rendered as a "B".

Here's an example that cropped-up on a site I'm building for a client (which is not yet open).

http://www.greatnorthroads.co.uk/news/news.php?2

I'd call it a bug.

:0\

Perch

Re: [Perchpole] Strange Character in blank line

By Dave - October 22, 2008

Hi Perch,

Strange characters are usually a character set problem. CMS Builder uses UTF-8 internally. If you view that page in Firefox, and then select from the menu: Tools > Page Info - Then look for "Encoding", it shows the charset as us-ascii.

Try editing the viewer page and replacing this tag:
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

With this one:
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />

Hope that helps! Let me know if that fixes it for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [pcolvin] Strange Character in blank line

By pcolvin - October 22, 2008

Dave and All,

Thanks for the replies and assistance. Changing the character set on the page took care of the problem. Also using Shift+Enter inserting the line break worked as well.

Phil