10 replies [Last post]
IanCube
IanCube's picture
Offline
Regular
NY
Last seen: 16 years 6 weeks ago
NY
Timezone: GMT+5
Joined: 2004-08-09
Posts: 19
Points: -1

When I went to w3.org and tried to validate my sites HTML code, I got the following errors.

Quote:
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.

The sources I tried to find encoding information include:

The HTTP Content-Type field.
The XML Declaration.
The HTML "META" element.
And I even tried to autodetect it using the algorithm defined in Appendix F of the XML 1.0 Recommendation.

Since none of these sources yielded any usable information, I will not be able to reliably validate this document. Sorry. Please make sure you specify the character encoding in use.

Specifying a character encoding is normally done in the web server configuration file or administration program. The W3C I18N Activity has collected a few tips on how to do this in popular web server implementations.

IANA maintains the list of official names for character sets and the WDG has some information to help you correctly specify the character encoding.

To quickly check whether the document would validate after addressing the missing character encoding information, you can use the "Encoding" form control (accesskey "2") earlier in the page to force an encoding override to take effect. "iso-8859-1" (Western Europe and North America) and "utf-8" (Universal, but not commonly used in legacy documents) are common encodings if you are not sure what encoding to choose.

Sorry, I am unable to validate this document because on lines 10, 736, 752-753, 971 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.

Here's a link to the source listing with the errors and such since it wouldn't fit it all on here.

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.xgia.net&charset=%28detect+automatically%29&ss=1&outline=1&sp=1&noatt=1&No200=1&verbose=1

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 36 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Help Validating my HTML

Ian check the pm I sent you,. you sent me a pm as I was on the board at that moment asking for further help to your post and I said then that the validator had this problem and even gave you an example of a character encoding line you could use Oups

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Help Validating my HTML

Hi IanCube,
As well as fixing the character encoding it would be a good idea to move the javascript into separate files.

Here one way to fix the encoding <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

IanCube
IanCube's picture
Offline
Regular
NY
Last seen: 16 years 6 weeks ago
NY
Timezone: GMT+5
Joined: 2004-08-09
Posts: 19
Points: -1

Help Validating my HTML

Oh thanks guys, sorry I missed that PM Hugo! I'll try your suggestions and see if it clears things up. Cool

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 36 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Help Validating my HTML

Thats the line I sent you in the pm that Tony has just written and I was going to suggest putting the Javascript in an external linked file in the same manor as the CSS(it will make the main page lighter); having said all that apart from the errors involving Closing tags, alt tags etc you may want to concider the merits of trying to validate aginst the W3C standards validator, as the use of MS filters and Flash code are non standard and are going to throw up errors regardless.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

IanCube
IanCube's picture
Offline
Regular
NY
Last seen: 16 years 6 weeks ago
NY
Timezone: GMT+5
Joined: 2004-08-09
Posts: 19
Points: -1

Help Validating my HTML

Can someone please help us figure out how to get that top bar in Firefox to not be moved over like it is currently???

Thanks

IanCube
IanCube's picture
Offline
Regular
NY
Last seen: 16 years 6 weeks ago
NY
Timezone: GMT+5
Joined: 2004-08-09
Posts: 19
Points: -1

Help Validating my HTML

Anyone? Please?

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Help Validating my HTML

Hi IanCube,
Well we are on the way now.
The best thing to do is look through an error at a time and see if you can fix it if you can revalidate as it may fix others if you can't move to the next error.
You will learn a lot while doing it.

One suggestion is to look at all links and replace '&' with '&amp;' that will clear up heap of errors.

Another good idea that was mentioned before is to move all JavaScript into an external file.

Hope that helps

IanCube
IanCube's picture
Offline
Regular
NY
Last seen: 16 years 6 weeks ago
NY
Timezone: GMT+5
Joined: 2004-08-09
Posts: 19
Points: -1

Help Validating my HTML

Yes I've separated all the Java I believe now...I'll try the "&" thing now...thanks I really appreciate your help a ton!

Ian

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 36 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Help Validating my HTML

Ian it may be a good idea to try to stick to posting within one topic as it's becoming confusing, a lot of boards would have locked one out!
Re: the top bar problem, I can't see any thing wrong! can you clarify

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

IanCube
IanCube's picture
Offline
Regular
NY
Last seen: 16 years 6 weeks ago
NY
Timezone: GMT+5
Joined: 2004-08-09
Posts: 19
Points: -1

Help Validating my HTML

Sorry Hugo, I was only trying to make things eaisier for people by categorizing my topics.

It's on the top bar with the rollover buttons that say all the gaming console names, PS2, GameCube, Xbox... and on the very right there is one that says "Community" that is in flash that drops down and then can be clicked to pull up again.

In Firefox it keeps pushing this wayyyyyy over to the right and making the whole page widen a ton.

Thanks,

Ian