W3C home > Mailing lists > Public > www-validator@w3.org > May 2007

Re: charset=us-ascii mandatory?

From: olivier Thereaux <ot@w3.org>
Date: Mon, 7 May 2007 13:03:43 -0400
Message-Id: <E86C832E-F2B2-400E-9AAC-CDCC9C4E9E2F@w3.org>
Cc: www-validator@w3.org
To: Andreas Prilop <AndreasPrilop2007@trashmail.net>

Hi Andreas,

On May 7, 2007, at 12:44 , Andreas Prilop wrote:
> Is it necessary to specify the parameter "charset=us-ascii"
> when a document contains only ASCII characters?

Declaring a charset is not necessary, but without one, the validator  
will fall back to utf-8. (which includes us-ascii).

> Currently, the validator refuses to validate such documents
> and complains "no character encoding found".

Well, if no character encoding is found, then a warning is in order,  
but the validator should not refuse to validate unless the fallback  
charset (utf-8) does not work.

Note that I have been fixing a number of issues with encoding,  
transcoding and charset override in the past few weeks, so if the  
validator 0.8.0 beta1 appears broken in this regard, you could check  
also the developer's instance [1] or wait until next week for the  
0.8.0 beta 2.

[1] http://qa-dev.w3.org/wmvs/HEAD/

> Isn't "us-ascii" the default value for "charset"?

utf-8 is.

Received on Monday, 7 May 2007 17:03:48 UTC

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