You are here: Re: IE displaying syntax instead of parsed page layout « HTML « IT news, forums, messages
Re: IE displaying syntax instead of parsed page layout

Posted by dorayme on 12/16/36 11:41

In article <xUpOf.1798$z03.1301@news-server.bigpond.net.au>,
"RobM" <rob@home.net.au> wrote:

> > > Ditch everything before the DOCTYPE, including the XML prologue, all
> that
> > > white space and the BOM.
> > >
> >
> > I have noticed similar behaviour in Safari from time to time when
> > I drag an .html file over the open window, the source is
> > displayed rather than than the web page. It happens sometimes
> > when trying to access a server based .html file too (in the
> > ordinary way of a url...). And always been puzzled by this. I
> > think it happens in other browsers too but I can't recall now...
> > I cannot recall anything in these files before the doctype but I
> > will look closely next time. Anyway, this behaviour is not
> > confined to just IE. I think that on some occasions reloading (by
> > browser button) sometimes causes the webpage to appear (off/on
> > line?)
> >
> > --
> > dorayme
>
> Cheers dorayme. I think its something to do with encoding. Toby had it.. I
> checked the demo file I had here and found it was unicode/utf-8 (not up on
> that too much yet), every byte had 00 between. I used text editor to
> "convert to ascii" and updated the file on my server and it now displays.

Well, I am at sea on this? By and large I do not have problems
mentioned above. For the odd case, reloading a url often "fixes"
it.

Is there a best general, safe practice to set one's text editor
preferences for html and css files to avoid this sort of thing?

I know how not to have anything before the doctype, and I am very
good at not having whitespace. I can get rid of it really easily
using the delete key. I am fast and efficient and really
competent on this.

But I don't know anything about BOM, when it is at home or just
passing me in the street. And I don't know whether or not
pressing my Convert to ASCII command is doing anything, I just
assume I am in ASCII. Honestly, I really do wonder how I get by!

Better read the BBEdit manual again after all these years... (but
maybe I will be none the wiser as to what practically to set my
prefs?)

--
dorayme

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация