Page 1 of 1

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

Posted: Wed Apr 18, 2007 2:06 pm
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?

Posted: Wed Apr 18, 2007 2:30 pm
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.

Posted: Wed Apr 18, 2007 2:49 pm
by Luke
thanks :)

Posted: Wed Apr 18, 2007 4:11 pm
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)

Posted: Wed Apr 18, 2007 5:18 pm
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.