* Juerd <[EMAIL PROTECTED]> [2006-09-16 22:15]:
> My thoughts:
>     * Default Content-Type header of "text/html; charset=UTF-8".
>     * Default output encoding of UTF-8.
>     * When a new Content-Type is set, but no new encoding
>         * Keep the default output encoding of UTF-8
>         * Warn if it's text/* without /charset=/
>         * Use the specified charset as the output encoding
>         * Change the output encoding to raw bytes if it's not text/*
>     * When a new Content-Type is set, and a new encoding is given
>         * Use the supplied encoding
>         * Warn if it's text/* without /charset=/
>         * Warn if supplied encoding and charset aren't equal enough

I had to read your mail twice to get what you really meant here,
but now that I have, this sounds reasonable.

> I think it's important to realise that only text/* have
> charset, and that Content-Type is MIME-type plus charset in one
> value. We shouldn't be "clever" and separate these: they're one
> string.

Sounds good to me.

Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to