Hi,

I'm currently confronted with a very strange Validation Error I'm unable to remove.

The Result can be seen here: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.onetreuhand.ch%2Ftreuhand%2Fueberuns%2Fone_treuhand_zuerich.html&charset=%28detect+automatically%29&doctype=Inline&group=0&No200=1&verbose=1&user-agent=W3C_Validator%2F1.654

its telling me:

Line 1, Column 1: character "?" not allowed in prolog ??<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR

as well as:

Line 1, Column 3: XML Parsing Error: Start tag expected, '<' not found ??<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR

Does anyone knows where I did something wrong?

Thanks for your help.

1 answer

Rob 230
3
points
This was chosen as the best answer

As the error states, apparently your editor is saving your markup with the unicode BOM (byte-order-mark) which is the first few characters you can't see at the beginning of the page. Check to see if your editor has a setting to allow/disallow BOM in your edits and turn that off.

Answered about 7 years ago by Rob
  • That BOM is of the devil! Jens Hedqvist about 7 years ago
  • Thanks for this answer, I expect that is it. I use Aptana Studio, does probably anyone knows, where I can set this? (I'm searching since an hour for this setting) Raphael about 7 years ago
  • Are you sure it's a BOM - AIUI Aptana defaults to UTF-8 no BOM - have you used HTML tidy on the file? lots of discussion here: http://www.google.com/search?hl=en&client=safari&rls=en&q=+site:forums.aptana.com+Aptana+BOM&ei=W3_YSuXcH9-ZjAeqyIDZCA&sa=X&oi=forum_cluster&resnum=1&ct=more-results&ved=0CAwQrQIwAA Tony Crockford about 7 years ago
  • try: http://bit.ly/OyQUQ Tony Crockford about 7 years ago