Results 1 to 6 of 6

Thread: W3C Cannot Validate with the script notice

  1. #1
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default W3C Cannot Validate with the script notice

    1) Script Title: Chrome CSS Drop Down Menu v2.5

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/chrome/

    3) Describe problem: W3C Cannot check this document.

    If I remove the script notice, it checks perfectly, what character is causing the problem, and is there a simple way to change the encoding or the doctype declaration?

    This occurs on this page: http://www.thesoundsmith.com/private/a_test.htm and on others that I have used the script on.

    This is the message:

    1. Error

    Sorry, I am unable to validate this document because on line 9 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.

    The error was: utf8 "\xA9" does not map to Unicode

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

    Default

    You're using the UTF-8 encoding for your Web page, but your editor is not saving in UTF-8. You need to set it to save in UTF-8.
    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
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    You're using the UTF-8 encoding for your Web page, but your editor is not saving in UTF-8. You need to set it to save in UTF-8.
    It IS set to save in UTF-8, but I copied in the line that fails from your site download. I then tried copying the notice to a new file opened as UTF-8, copy and paste resave, o the doc thinks it is UTF-8, but it still fails. It MUST be in the character stream from the downloaded file. Is it okay to just retype it? When I re-enter the text manually, it encodes just fine.
    Last edited by thesoundsmith; 03-11-2009 at 09:23 PM.

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

    Default

    It's the © character that's causing problems. Try copying and pasting it from these forums — perhaps your editor doesn't do re-encoding of pasted text properly. If all else fails, you can encode it as the HTML character entity ©.
    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!

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 517 Times in 503 Posts
    Blog Entries
    5

    Default

    I've had this problem before; I just rewrite it as (c)

  6. #6
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    It's the © character that's causing problems. Try copying and pasting it from these forums — perhaps your editor doesn't do re-encoding of pasted text properly. If all else fails, you can encode it as the HTML character entity ©.
    Yeah, I figured that out after I retyped the notice. I thought this was a deliberately encoded character in the text (to "prove authenticity", or some such???) But when I retyped, I entered the coded way and it's just fine. Thanks to both of you. just trying to follow the spirit of the site...

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
  •