W3C home > Mailing lists > Public > www-validator@w3.org > November 2005

Error Message Feedback

From: Sverker Fridqvist <sverker@fridqvist.se>
Date: Mon, 7 Nov 2005 11:29:13 +0100
Message-Id: <FEE4D9CF-5F3C-444B-8EE6-008CBA4691C0@fridqvist.se>
To: www-validator@w3.org


Compare the error reports for these two urls:



Both files contain Byte-Order Marks (BOMs) designating UTF-8  
encoding. The BOM is recognized for the first file, but not for the  
second one. Instead it is only reported that the prolog contains non- 
allowed characters. Since these characters are invisible with many  
editors and browsers, the problem is hard to understand to people  
unaware of BOMs.


It would be helpful if the validator recognized the BOM also in the  
second case, and reported that the not-allowed characters in the  
prolog is a BOM.

If this is not possible, or easily done, the error message could make  
a helpful hint towards a BOM:

"Character ... not allowed in prolog.  The character may be part of a  
Unicode Byte-Order Mark (BOM). Try changing the character encoding  
setting of your editor to not include BOMs."
Received on Monday, 7 November 2005 13:53:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:47 UTC