Help needed with W3C validation error (Full Version)

All Forums >> [Web Development] >> Accessibility



Message


BF -> Help needed with W3C validation error (8/1/2006 16:36:27)

Can anyone help with the following validation error I am getting when I try to validate one of my FP sites using http://validator.w3.org/ ....

the site is:- www.cyprusvillawithpool.com

and the validation error is:-

Sorry, I am unable to validate this document because on line 42, 94 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.

The problems:-

1. what does it mean by line 42?
2. what is it complaining about?
3. how do I fix it

Thanks!
BF
quote:





womble -> RE: Help needed with W3C validation error (8/1/2006 17:09:13)

Line 42 means there's an error in line 42 of the code for the page. If you take a look in either 'code' or 'split' view in FP hopefully you should be able to see what might be causing the error. It sounds like you've got a character entity or special symbol in there that's not a recognised character entity. Once you've identifed where the problem is then you should be able to find the correct character entity to replace it. Fileformat.Info is a good site for finding the correct character entities.

I'm not sure quite which line it's complaining about because my firewall's inserting a pop-up blocking script that's messing up the formatting when I try and view the source.




Tailslide -> RE: Help needed with W3C validation error (8/1/2006 18:19:20)

For reasons I don't quite understand because it's meant to detect these things automatically, the validator isn't recognising your character encoding automatically. If you specifically choose the right encoding then you still get some errors I'm afraid but at least they're the right errors (if you see what I mean)

http://validator.w3.org/check?uri=www.cyprusvillawithpool.com&charset=windows-1252&doctype=Inline&verbose=1

edit: it's still giving odd errors - never seen it do that before.




jaybee -> RE: Help needed with W3C validation error (8/1/2006 19:02:53)

There's a bullet on line 42 that it doesn't like.

<TD><!--WEBBOT bot="Include" U-Include="includes/global.htm" TAG="BODY" startspan -->
&bull; <a href="index.html">HOME</a> &bull; <A href="contact.htm">CONTACT US</A> 
•

<!--webbot bot="Include" i-checksum="10990" endspan --></TD>
The two on line 41 appear in the source as &bull; but the other one on 42 appears as a bullet.




Tailslide -> RE: Help needed with W3C validation error (8/2/2006 2:36:03)

Edit: OK figured out what the problem is. Your front page is currently using charset=iso-8859-1 which does not have the bullet as part of it's character encoding.

All your other pages are correctly using charset=windows-1252 which is the correct one to use if you want the bullet sign.

Copy and Paste the character set from one of the other pages onto your home page and it will validate properly.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875