SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Site validates, but css won't because it says site won't validate

    Quite a weird combination. I spent some time getting my current layout, http://www.gamecubecheats.info/blog/index.cfm, to validate, and finally did. Then went to validate my css, and it tells me my site doesn't validate. Not quite sure what to make of this. The css is fine after I had to manually upload it to the w3c validator.

    any thoughts why I am getting the error.

    oh, and when using Firefox with the developers toolbar, whenever I tried to validate one of my transitional pages, it wants to try and validate it as Scrict.

  2. #2
    SitePoint Addict
    Join Date
    Apr 2003
    Posts
    208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Character Encoding mismatch!
    The character encoding specified in the HTTP header (utf-8) is different from the value in the <meta> element (iso-8859-1). I will use the value from the HTTP header (utf-8) for this validation.

    Hmm, pretty weird. I wonder if CFM gets parsed different.

  3. #3
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    don't know

  4. #4
    SitePoint Guru DCS's Avatar
    Join Date
    Apr 2002
    Location
    Arkansas
    Posts
    809
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The CSS validator has been screwy lately. If I try to validate CSS by file upload it tells me no file selected!

  5. #5
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    There is indeed a character set mismatch in your page.

    Which character set are you supposed to be using? ISO-8859-1 or UTF-8?

    You need to either remove the meta tag which sets it to ISO-8859-1 or the HTTP response header which sets it to UTF-8.

    Theoretically, the meta tag should override the http response header, but it appears that the CSS validator is a little more fussy (I like that in a validator ).
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  6. #6
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I will be honest, I don't know where that UTF-8 is coming from, its not in my header source code.

    This is the top of my page

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title><cfoutput>#title#</cfoutput></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

  7. #7
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think its a coldfusion thing. I removed the ISO.

  8. #8
    SitePoint Member webarnes's Avatar
    Join Date
    May 2004
    Location
    Atlanta, Ga. Suburbs
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I will be honest, I don't know where that UTF-8 is coming from, its not in my header source code.
    Have you tried to change:
    charset=iso-8859-1
    to charset=UTF-8
    and revalidate?

    William

  9. #9
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I have removed the debate about web standards from this thread. This thread is for discussing jag5311's problem.

    jag5311, the web server you are using is sending out an http header which is labelling your page as using the UTF-8 character set. You can verify this using this tool. This does not match the character set used in your document.

    I assume that, since you placed the meta tag into your document stating that it is iso-8859-1 then that it because your content actually does use iso-8859-1. If this is the case, then you will need to ensure that the server stops sending out the header that says it is UTF-8.

    If, on the other hand, you have no idea what a character set is and you never use any character outside of the 0x20 to 0x7F range (ASCII displayable characters), then you can ignore character sets and omit the meta tag which is claiming iso-8859-1.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  10. #10
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I am unfamiliar with character sets, so I removed it claiming the ISO thanks mmj


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
  •