[56K WARN] Can't get this page to validate. Advice?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

[56K WARN] Can't get this page to validate. Advice?

Post by Luke »

I'm trying to validate this page: http://www.suttoniris.com/html/about_us.html I can not get it to validate. It's giving me this error:
w3c validator wrote:Sorry, I am unable to validate this document because on line 67 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.
I've examined the text and don't see anything that isn't valid, so I brought the text into eclipse and changed the text encoding to utf-8, but still no go. How can I get this fixed?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Sutton?s i
Image

The apostrophe in Sutton's. They catch you out if you copied and pasted from MS Word. Check everywhere for them.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

thanks :)
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Possibly a better solution is to change the encoding of your pages to UTF-8 and save them as such... then you can use all the fancy quotes and dashes you want :-)

use:

Code: Select all

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

Code: Select all

header('Content-Type: text/html; charset=utf-8');
* and make sure you save the pages as utf-8 (should be a setting in your editor, I have it on by default)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

unfortunately the only way to save files on this site is to input the html into a textarea on an admin panel, so it saves the files however it wants to.
Post Reply