|
Posted by RobM on 09/27/57 11:41
"dorayme" <doraymeRidThis@optusnet.com.au> wrote in message
news:doraymeRidThis-34053E.09571205032006@news-vip.optusnet.com.au...
> In article <ua1od3-nsv.ln1@ophelia.g5n.co.uk>,
> Toby Inkster <usenet200602@tobyinkster.co.uk> wrote:
>
> > RobM wrote:
> >
> > > Something to do with http headers coming down the line?
> >
> > Perhaps, but IE occasionally ignores HTTP headers anyway. I think this
is
> > your problem.
> >
> > 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. I
think IE didnt like that encoding. I may try adding below to my JSP, as in
prod its coming from a web server dynamically generated, so must be
something to do with the encoding I'm using. I'm going to go back to common
html 4 syntax without the simulated frames scrolling stuff, its going to
cause too much grief from different browser I can see it coming. They'll get
used to scrolling the page, esp if I rearrange some data.
<%@ page contentType="text/html; charset=UTF-8" %>
Cheers
Rob
[Back to original message]
|