...

View Full Version : w3c validation



cooldaddy
12-03-2005, 10:09 AM
I'm trying to get my html page validated at http://validator.w3.org/
But somehow it doesnt get far with validation cause I get this message:

Sorry, I am unable to validate this document because on line 184, 199, 202 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.

Can anyone tell me what this means ?

mark87
12-03-2005, 10:53 AM
Try changing the charset to ISO-8859-1.

I'm guessing your page has characters on those lines which the UTF-8 charset does not contain.

More on the different charsets here (http://www.w3.org/TR/REC-html40/charset.html).

Bill Posters
12-03-2005, 11:58 AM
utf-8 is actually a fairly good character encoding to use.
Rather than change the encoding, it might be better to replace the offending characters with equivalents that work within utf-8. It may be that you're using characters that should be used in their html character entity forms (e.g. &).

Any chance we can see the page in question?

_Aerospace_Eng_
12-03-2005, 06:10 PM
Or perhaps there is no content-type meta set at all in the first place.

Secyrb
12-03-2005, 07:28 PM
Ok yes i do not know as much as you guys do about coding. So thats is why i am trying to learn so dont go flairing at me like some people did on my last post.:) But after you check for errors, how can i find exactaly where they are? Then fix them?:confused:

Bill Posters
12-03-2005, 07:39 PM
Ok yes i do not know as much as you guys do about coding. So thats is why i am trying to learn so dont go flairing at me like some people did on my last post.:) But after you check for errors, how can i find exactaly where they are? Then fix them?:confused:

Each error will have a line number next to it.
Check that line and address the error.

If your editor doesn't show line numbers, use the detailed W3C markup validator (http://validator.w3.org/detailed.html) (with the show source box checked).
It will return the error report and show your page markup beneath it with line numbers.

The CSS validator will also give the line number of each error.

If you don't already use one, get yourself a decent editor that presents line numbers down the side of your code.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum