Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: w3c validation

  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    w3c validation

    I'm trying to get my html page validated at http://validator.w3.org/
    But somehow it doesnt get far with validation cause I get this message:

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

    Can anyone tell me what this means ?

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try changing the charset to ISO-8859-1.

    I'm guessing your page has characters on those lines which the UTF-8 charset does not contain.

    More on the different charsets here.

  • #3
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    utf-8 is actually a fairly good character encoding to use.
    Rather than change the encoding, it might be better to replace the offending characters with equivalents that work within utf-8. It may be that you're using characters that should be used in their html character entity forms (e.g. &).

    Any chance we can see the page in question?

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Or perhaps there is no content-type meta set at all in the first place.

  • #5
    New Coder
    Join Date
    Jun 2005
    Location
    California
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok yes i do not know as much as you guys do about coding. So thats is why i am trying to learn so dont go flairing at me like some people did on my last post. But after you check for errors, how can i find exactaly where they are? Then fix them?
    -Bryce
    It doesn't matter how long my hair is or what colour my skin is or whether I'm a woman or a man. -John Lennon

  • #6
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Quote Originally Posted by Secyrb
    Ok yes i do not know as much as you guys do about coding. So thats is why i am trying to learn so dont go flairing at me like some people did on my last post. But after you check for errors, how can i find exactaly where they are? Then fix them?
    Each error will have a line number next to it.
    Check that line and address the error.

    If your editor doesn't show line numbers, use the detailed W3C markup validator (with the show source box checked).
    It will return the error report and show your page markup beneath it with line numbers.

    The CSS validator will also give the line number of each error.

    If you don't already use one, get yourself a decent editor that presents line numbers down the side of your code.


  •  

    Posting Permissions

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