PDA

View Full Version : Possible problem with text/html editor?


johnfl68
05-09-2008, 10:43 AM
Future Quest Staff:

I have started seeing something weird with the CNC text/html editor that you may want to keep an eye on, in that it is adding this character:



I saw this the other day when I made a quick online edit to an existing page. After making the edit and loading the page, it had a few of those in it, and not near where I made the edit. So I made the change in GoLive and uploaded the file, and it was fine.

I made a quick edit to another page, and saw the same behavior. So as a test I just copied a html file with a new name, opened it with the CNC text/html editor, did not change anything, and saved the file. And yes, that character showed up in the document.

So, I'm not sure what is going on, and why. If you need any additional information, please let me know.

Thanks!

John

johnfl68
05-09-2008, 10:45 AM
Additional note:

In FireFox this shows as a Black Diamond with a ? in the center, but a box in IE.

John

Bob
05-09-2008, 10:46 AM
John,

Was this with the Regular CNC or the SCNC and is it reproducible in both? Also can you reproduce in multiple servers or just one?

Thanks,
Bob

Arthur
05-09-2008, 10:55 AM
John, you probably have non-ascii (UTF-8) characters in your HTML file (like the apostrophe in your signature here). Unfortunately, the CNC cannot currently handle Unicode characters properly (it's on the to-do list).

-Arthur

johnfl68
05-09-2008, 11:00 AM
Ok, did a couple of test on various servers, and secure and non-secure.

The culprit is. . .

(Trumpet Fanfare)

FireFox 2.0.0.14

I could not get this to happen with IE, but almost always with FireFox.

Now that I think of it, I have been seeing the Black Diamond ? on quite a few pages lately around the web.

John

Randall
05-09-2008, 10:42 PM
Now that I think of it, I have been seeing the Black Diamond ? on quite a few pages lately around the web. Firefox is less tolerant of encoding mismatches. Thinking about it right now, I finally realized why I've been having trouble with text pasted in from Word.

My text editor is set to UTF-8 by default, but there's no <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> line in the site's header file. Firefox defaults to ISO-8859-1. So when I paste something with "smart quotes" and other non-standard characters into my text editor, it converts them to Unicode -- but Firefox doesn't know that.

So if you're seeing stuff like รข€ instead of quote marks, that's the reason why.

Randall