Tuesday, 7 October 2008

Div Span

Validated my div span code and it passed, but only a little bit. Came back with this:

No Character Encoding Found! Falling back to UTF-8.
None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "UTF-8" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents.
Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.

Anyone know what this means?

4 comments:

Pedro said...
This comment has been removed by the author.
Pedro said...
This comment has been removed by the author.
Pedro said...

It would have been helpful to provide us with a link to the page you validated, so we could see in what context the problem occurred. Often there is no other way to find out, than to change the code and go through a process of trial and error.

I think the FAQ link you provided might give you the answer.

Point 2: “The validator can not fix this issue. You will have to (ask your administrator to) reconfigure whichever zealous software is stripping this referrer info.

Nick Fernando said...

The UTF-8 fallback can happen when there are some 'unusual' characters in your documents, or you are using numeric codes for xhtml entites like & etc.

Accents and strange quotes usually create this problem, particularly if you are 'copying and pasting' code from another type of document.

You have the option to save as UTF-8 in most editors, however they should be unicode compatible by default for western countries.

A much less likely cause is when header information describing the encoding format isn't there.

This < meta > tag describes encoding format for Latin-1 (used as default by dreamweaver):

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

If you do use numeric codes for xhtml entities they need to 'map' to the equivalent in UTF-8.

Was this helpful? If so will put in my blog.