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 9 of 9
  1. #1
    New Coder
    Join Date
    Mar 2006
    Location
    I'm lost, livin inside myself
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Validation issue

    I'm trying to validate this page

    http://www.ninercaphell.com/test/

    but it keeps coming up with this error message, it doesn't make any sense to me, does anyone know what it means? There are no odd characters on the line specified.

    Sorry, I am unable to validate this document because on line 238, 258, 293 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.
    http://validator.w3.org/check?verbos....com%2Ftest%2F
    $guiness &= new sixpack();
    $guiness->chug();

  • #2
    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
    Remove this
    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    As its messing up IE6 putting into quirks mode. If you've wondered why you had so many bugs in IE6 the above reason is why.

    As not being able to validate this most of the time due to a lack of a meta tag that specifies the content-type. Add this in between your head tags somewhere
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Mar 2006
    Location
    I'm lost, livin inside myself
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nope, still has the same problem.
    $guiness &= new sixpack();
    $guiness->chug();

  • #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
    What are you using to edit your code? The new line characters your editor creates seem to be causing the issue.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Mar 2006
    Location
    I'm lost, livin inside myself
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Dreamweaver. But it's templates that are compiled from a database.
    $guiness &= new sixpack();
    $guiness->chug();

  • #6
    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
    Hmm I did a view source of your code in Firefox, copy and pasted it into dreamweaver and then revalidated and it doesn't get that error though you do have about 187 coding errors.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    New Coder
    Join Date
    Mar 2006
    Location
    I'm lost, livin inside myself
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm trying to figure out where those characters are coming from, is there anyway to remove them with PHP?
    $guiness &= new sixpack();
    $guiness->chug();

  • #8
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    your code has many incorrect usages.

    consider:
    http://www.w3schools.com/tags/ref_entities.asp

    Code:
    &amp;quot;
    is your most bizarre attempt. it's a cross between
    Code:
    &quot;
    for quotes
    and
    Code:
    &amp;
    for an ampersand.

    in other cases you are using apostrophes, right/left quotes without the correct character set replacement.

    the 'amp quot' is used on one of the lines the validator disputes. on another you are using 1/4 symbol incorrectly
    Code:
    &frac14;
    is the correct usage.

    other than this basic nit-picking, I cannot see anything which would properly cause such an error.

    one thing though, if you switch the character set encoding to western europe
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    over utf-8 you will receive a functioning validation screen displaying erroneous lines - all 206 of them.

    hope that helps

  • #9
    New Coder
    Join Date
    Mar 2006
    Location
    I'm lost, livin inside myself
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, a lot of this is compiled from a database in mass, so coding errors are abounding, the main issue is getting it to show me the errors so I can fix them.

    Thank you for that, it is now at least attempting to validate it.
    $guiness &= new sixpack();
    $guiness->chug();


  •  

    Posting Permissions

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