HTML source in Google

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi all.

I have made a web page ( When google list some of the
sub pages, the HTML source appears instead of a preview of the text in my
page. Klick on the link below to see what i mean (scroll to the bottom og
the page): =

Why does this happen? Is there some error in my source that causes this?
What can I do about it?


Re: HTML source in Google

Daniel Hjerholm wrote:
Quoted text here. Click to load it

If you look at the pages that Google have cached (e.g. ),
you'll see that they're shown as things like:

< H T M L >
< H E A D >
< T I T L E > S h a p i n g ... etc. etc. etc.

i.e. a whitespace after every character.

Your page is encoded as UTF-16, i.e. two 8-bit bytes per symbol. As
you're only using characters from the ASCII set, what you're seeing
would tally with Google interpreting your page as UTF-8 or ISO-8859-1 (I
think. Someone may want to correct me on this! ;) ).

Is it possible that at some point your server was not configured to
output HTML with the correct charset? If Google cached the page at this
point, it may have defaulted to an 8-bit charset, hence the result
you're seeing.


Re: HTML source in Google

Quoted text here. Click to load it
og =
Quoted text here. Click to load it,
Quoted text here. Click to load it


You were right! Notepad automatically saved the pages with Unicode encoding
because they contained some special characters. I have now saved them with
ANSI encoding. The special characters are still there, so I don't know why
Notepad didn't want to use Unicode in the first place.

Anyway, thanks for your quick reply.


Re: HTML source in Google

Quoted text here. Click to load it

Maybe either a glitch at Google's end, or maybe there
was a problem with your server. Look at Google's
cached version of your page(s) with the problem.
It tells you when Google retrieved the page.
Maybe you can then use your server logs to figure
out if it was a problem at your end.

Dave Patton
Canadian Coordinator, Degree Confluence Project /
My website: /

Site Timeline