• I’ve spent the last day or so tweaking my template and my posts so it will validate. I’ve got everything ironed out except this one.

    A few pages on my blog will not validate. Examples listed below.

    I have already tested this with all plugins activated, all plugins deactivated, and with all combinations of some active.

    I’m pulling my hair out. Any help would be appreciated by me and by my hairline.

    For this page
    https://www.dcroe.com/blog/index.php?paged=6
    generates the following error

    “Sorry! This document can not be checked.

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

    In this case the line in question is a line of text in a post.

    For this page
    https://www.dcroe.com/blog/index.php?paged=7
    The errors are on lines 293-305
    Which starts in the middle of a post and continues through the end of the post and the div:post-info that follows the post.

    For this page
    https://www.dcroe.com/blog/index.php?paged=10
    The error is on lines 263
    The only thing on this line is div class=post

    For this page
    https://www.dcroe.com/blog/index.php?paged=12
    The errors are on lines 244,246
    Which is the opening tag and second list of the post specific xml info

    For this page
    https://www.dcroe.com/blog/index.php?paged=14
    The errors are on lines 225-226
    The only thing on this line is div class=post
    Which is the closing tag of the xml info and div class=post-footer

    For this page
    https://www.dcroe.com/blog/index.php?paged=16
    The error is on lines 267
    The only thing on this line is div class=post-content

Viewing 2 replies - 1 through 2 (of 2 total)
  • OK, here is the trick:
    Write down the line number when on the validation page and do this – in the Encoding field instead of “detect automatically” change it to western; check the Show Source box and hit Revalidate.

    You’ll be able to visit the line you wrote down in step 1 and will be able to figure out whet the issue is.

    BTW, on the net you should NOT use the old ‘typing on paper’ rule = two spaces after a period. In many WP installs it screws up the code, inserting some odd ? character (you’ll find tons of it in your code)

    Thread Starter dcroe05

    (@dcroe05)

    moshu,

    Thanks for the fix. It worked beautifully, and now each of my pages validates.

    Also…thanks for the tip on the double spaces. I don’t know how easy that will be to stop as it’s totally unconscious, but I’ll keep it in mind.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘XHTML Validation and utf-8’ is closed to new replies.