Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6780807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:32:59+00:00 2026-05-26T16:32:59+00:00

I have a blog(wordpress based). And try to validate by w3c validator one of

  • 0

I have a blog(wordpress based). And try to validate by w3c validator one of my page. The first error is:

Line 1, Column 1: Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>.
<!DOCTYPE html><!-- HTML 5 -->

Also, DebugBar (http://www.my-debugbar.com/wiki/IETester/HomePage) agree and show two invisible chars before <! when I open the same page from “HTML Check” tab inside this tool. BUT!!

  1. This line of HTML-code come from file header.php in my wordpress theme.
  2. I download this file from my hoster to my local HDD.
  3. The first line of header.php is <!DOCTYPE html><!-- HTML 5 -->
  4. When I open header.php in RJ TextEd (just advanced text editor) it say: current encoding for header.php is UFT-8 without(!) BOM.
  5. When I open header.php in HEX-viewer I see, that byte 0 and 1 is 3c,21 – so it is exactly <!.

So, all things considered, why & where I get these “odd symbols” from?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:32:59+00:00Added an answer on May 26, 2026 at 4:32 pm

    I found the root of problem. The general rule is:

    If any(absolutely any!) file that take part in construction of the
    code of final HTML-page(the one to be sended to client) has encoding
    with BOM – final HTML-page WILL BE UTF-8-BOM. That is: you whole site
    should NOT contain even 1 file with BOM.

    In my case I have total 1.3K files that make up my site. Only 4 files was BOMed:

    • wp-config.php (in root of site)
    • jquery.query.js (in include folder)
    • cyr-to-lat.php (in plug-in folder)
    • footer.php (in theme root folder)

    And I was forced to re-save every and all of these 4 files as “UFT-8 without BOM” to get rid of “Non-space characters” validation error. When I did this (re-save files) – error is gone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a blog (wordpress) and a facebook fan-page for my blog (with more
I have a blog on something.wordpress.com , I simply want one post to ALWAYS
I have a WordPress blog on my website. But I've created my own page
On my Wordpress blog I have a page named Products and a sub page
I currently have a wordpress blog that assigns a number to each one of
I have a blog (non wordpress or anything) written in vb.net. At the moment
On my WordPress blog, whenever I have a PHP error, it breaks the site
I have a wordpress blog. I made a custom page-template that allows users to
i have a wordpress blog and want to give people the same user experience
I have a (wordpress) blog where after commenting the users are redirected back to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.