Results 1 to 6 of 6

Thread: Problem with W3C validator

  1. #1
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Problem with W3C validator

    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/co..._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?
    Cheers
    Billy

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The problem is line 228:
    Code:
    <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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    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.
    Cheers
    Billy

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by wkenny
    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:

    HTML Code:
    <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

  5. #5
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thanks, Mike
    Cheers
    Billy

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The problem character is a superscript letter O.
    Really? Renders here as what looks like the lower half of a comma.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •