[Zope] The wrong content type

Alexander Staubo alex@mop.no
Tue, 22 Jun 1999 01:35:47 +0200


I just discovered that DTML Documents and Methods containing "special"
characters are deemed by ZServer to be binary (that is, "Content-Type:
application/octet-stream"), and not HTML.

The special characters I refer to are part of the Windows ANSI
(ISO-8859-1, I believe) character set, and the inclusion of characters
such as em-dash (#150) instead of character reference entities (eg.,
–), while not entirely correct HTML, should not automatically
demote the document to binary, should it? When, at all, would it be
appropriate to assume that a DTML Document contains binary data? Aren't
DTML Documents by definition text?

--
Alexander Staubo             http://www.mop.no/~alex/
"It has taken the planet Earth 4.5 billion years to discover it is
4.5 billion years old." --George Wald