Log in

View Full Version : Problem with W3C validator



wkenny
01-10-2006, 07:01 PM
When I run the W3C validator on many of my pages I get an error message saying the page cannot be validated because a byte which cannot be interpreted as utf-8 is present in line xxx
e.g. if I validate
http://www.estateagentsespana.com/costadelsol/fuengirola_estate_agents_01.htm

the validator says this byte is line

The following is lines 228-231

<td><input type = "checkbox" checked = "checked" disabled="disabled"><input type = "checkbox" checked = "checked" disabled="disabled"><input type = "checkbox" disabled="disabled"><input type = "checkbox" disabled="disabled"></td>
<td class="plain-text"><a href="mailto:info@vpinmo.com"><img src="http://www.estateagentsespana.com/images/envelope_sm.gif" height="12" width="29" alt="E-mail" /></a></td>


Can anybody suggest what the problem may be?

Twey
01-10-2006, 08:32 PM
The problem is line 228:
<tr class="traddress1"><td colspan="5">Avda. Los Boliches n� 40. Fuengirola</td></tr>That odd character after the n is not part of the UTF-8 charset. You can a) remove it or b) change your character encoding to a charset that includes that character.

P.S. You need to close <input> tags in the same manner as <img> tags.

wkenny
01-11-2006, 07:02 PM
Thanks, Twey.

The problem character is a superscript letter O. Do you know which character encoding I should use to have this interpreted properly?

Thanks also for your advice on the input tag.

mwinter
01-13-2006, 01:38 AM
The problem character is a superscript letter O.The Unicode Consortium have deprecated sub- and superscript characters in (X)HTML documents. The sub and sup elements should be used instead:



<sup>o</sup>



Do you know which character encoding I should use to have this interpreted properly?If you really do want to use that character, then state the encoding as ISO-8859-1. Alternatively, use a decent text editor and have it encode that document as UTF-8, properly.

Mike

wkenny
01-13-2006, 02:38 PM
Thanks, Mike

Twey
01-13-2006, 04:07 PM
The problem character is a superscript letter O.Really? Renders here as what looks like the lower half of a comma.