I have a blog (based on WordPress). And try to validate the w3c validator on one of my pages. First mistake:
Line 1, Column 1: Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>. <!DOCTYPE html><!-- HTML 5 -->
In addition, DebugBar (http://www.my-debugbar.com/wiki/IETester/HomePage) agrees and displays two invisible characters before <! when I open the same page from the HTML Validation tab inside this tool, BUT !!
- This line of HTML comes from the header.php file in my wordpress theme.
- I download this file from my hoster to the local hard drive.
- The first line of header.php is
<!DOCTYPE html><!-- HTML 5 --> - When I open header.php in RJ TextEd (advanced text editor only), it says: current encoding header.php is UFT-8 without (!).
- When I open header.php in a HEX-viewer, I see that bytes 0 and 1 are 3c, 21 - so this is exactly
<! .
So, everything has been examined, why and where do I get these “odd characters” from?
html utf-8 wordpress byte-order-mark w3c-validation
Smarty
source share