W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2006

document charset and Cache-Control: no-cache

From: Michael Teichgräber <mt@wmipf.in-berlin.de>
Date: Wed, 15 Feb 2006 14:20:19 +0100
To: www-amaya@w3.org
Message-ID: <87k6bwoj1o.fsf@wmipf.in-berlin.de>

Hi,

when loading some html files, just converted to utf-8, into Amaya I
realized that non-ascii characters were displayed broken (i.e. as if
watched in iso-8859-1 mode), and the Document Information window said
"Charset: Unknown".

The pages were sent to Amaya by a CGI program with a Content-Type of
"text/html; charset=utf-8", so I wondered what could be wrong.

It seems to be caused by the existence of another header
"Cache-Control: no-cache", that is sent by the CGI program too. If
that header is present, the charset information seems to be ignored,
even if Amaya's cache is disabled. If, however, I leave this header
out, Amaya recognizes the character coding as utf-8, and the display
is fine.

I suppose the charset info shouldn't be discarded in that case.
Perhaps it is not available anymore after the `no-cache' information
has been processed? Both Amaya 8.5 and 9.4 show this behaviour.

Regards,

Michael
Received on Wednesday, 15 February 2006 13:45:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:50 UTC