Click to See Complete Forum and Search --> : Validation


tims15
06-28-2005, 12:10 PM
When I use the w3c HTML validator, I get this error message

No Character Encoding Found! Falling back to UTF-8.I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents.

So what should I do? Tell me more...

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

Line 61 is
<!-- Easy peasy award --><a href="http://www.easypeasy.com/"><img src="http://www.easypeasy.com/assets/core/awards/easypeasy-awards150.gif" border=0 alt="This site has been awarded the easypeasy award for excellence!"></a>
Whats wrong with line 61?

crh3675
06-28-2005, 12:18 PM
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

carlwit2005
06-28-2005, 02:13 PM
1) Place this line in your header:

<meta http-equiv="content-type" content="text/html; charset=utf-8">

2) Line 61 probably has a hidden non-printable character embedded in it that is not part of the character set. Retype line 61 with your favorite editor and the problem should go away.

wayne_ca
06-28-2005, 03:03 PM
You should always include a doctype statement at the beginning of your page document so the validator knows which dtd you are validating to. The one for HTML 4.01 is as follows (this one is the default doctype that Dreamweaver 2004 MX includes in new html documents):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

NogDog
06-28-2005, 04:04 PM
It might be a good idea to spend a few minutes perusing this:
http://www.w3.org/TR/html4/struct/global.html . Yeah, it's dry reading, but it explains a lot.

This is the template I use to start all my HTML files (so I don't have to remember all those details):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
<title>Page title</title>
<style type="text/css">
<!--

-->
</style>
</head>
<body>



</body>
</html>

Stephen Philbin
06-28-2005, 07:43 PM
http://www.easypeasy.com/assets/core/awards/easypeasy-awards150.gif"


Probably the hypen in that address. Don't use proprietary word processors to make html documents. Use a proper editor like Notepad, Kate,Araneae, HTML-Kit, Jedit, Bluefish and so on.

tims15
07-01-2005, 04:57 PM
Cheers, it works now!