This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22230 - Incorrect error wording when forcing character encoding
Summary: Incorrect error wording when forcing character encoding
Status: RESOLVED WONTFIX
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://www.plam.cantech.bg
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-31 20:14 UTC by Ori Avtalion
Modified: 2015-08-23 07:33 UTC (History)
2 users (show)

See Also:


Attachments

Description Ori Avtalion 2013-05-31 20:14:24 UTC
When validating a page served with an HTTP header reporting an encoding of 'ascii', and a meta tag reporting an error of 'utf-8', warning W19 is shown:

> The character encoding specified in the HTTP header (ascii) is different
> from the value in the <meta> element (utf-8). I will use the value from the 
> HTTP header (ascii) for this validation. 

This is using the parameter charset=(detect+automatically)

However, if an encoding is forced with the parameter charset=utf-8, the wording of W19 becomes confusing and incorrect:

> The character encoding specified in the HTTP header (ascii) is different from
> the value in the <meta> element (utf-8). I will use the value from the HTTP 
> header (utf-8) for this validation.

The warning manages to report the HTTP header encoding as being both 'ascii' and 'utf-8'.

The warning assumes that the 'used' encoding was determined according to the specification, and not forced by the validator.

I assume W18 and W20 have the same problem.
Comment 1 Michael[tm] Smith 2015-08-23 07:33:31 UTC
Use the current W3C HTML Checker https://validator.w3.org/nu/ instead.