W3C home > Mailing lists > Public > public-html@w3.org > June 2008

Unsupported transport-layer encodings

From: Philip Taylor <pjt47@cam.ac.uk>
Date: Fri, 13 Jun 2008 15:53:24 +0100
Message-ID: <485289E4.3030501@cam.ac.uk>
To: HTML WG <public-html@w3.org>

When a server sends:

   Content-Type: text/html; charset=unsupported

what should a UA do?

In the spec, "Determining the character encoding" says "If the transport 
layer specifies an encoding, return that encoding with the confidence 
/certain/, and abort these steps." so the encoding has the value 
"unsupported". (Step 7 of that algorithm (which defaults to something 
undefined, typically Windows-1252) is never reached, since step 1 returns.)

Also the spec says "The bytes encode the actual characters according to 
a particular /character encoding/, which the user agent must use to 
decode the bytes into characters.", so it sounds like the UA must decode 
with the "unsupported" encoding, which it can't because it doesn't 
support that. I can't find anything that says to fall back to some other 
(supported) encoding.

Philip Taylor
Received on Friday, 13 June 2008 15:07:28 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:32 UTC