Re: [hypermail] charset usage

From: Zvi Har'El <rl_at_math.technion.ac.il_at_hypermail-project.org>
Date: Thu, 8 Nov 2001 17:34:17 +0200 (IST)
Message-ID: <Pine.GSO.4.33.0111081729250.20079-100000_at_leeor.math.technion.ac.il>


Dear Daniel,

I ran hypermail on my archive and checked: %c really produces for message files the whole META tag if the charset is not US-USASCII or ISO-8859-1. In the latter cases it is empty (modulo an extra new-line). It is also empty for index files. I suggested that for message file that do contain ISO-8859-1 charset, the META tag is produced, since otherwise the page will be displayed by the browser using its default charset, which might be other then latin1.

Thanks,

Zvi.

On Thu, 8 Nov 2001, Zvi Har'El wrote:

> On Thu, 8 Nov 2001, Daniel Stenberg wrote:
>
> > On Thu, 8 Nov 2001, Zvi Har'El wrote:
> >
> > > However, the HTML Head is generated using a template supplied by me, and
> > > there is no token I can use to substitute the charset: I would like to
> > > have something like %c (similar to %s -- subject of message) which I can
> > > use in the header as <META HTTP-EQUIV="content-type" CONTENT="text/html;
> > > charset=%c">, which will be replaced by UTF-8 etc. (or ISO-8859-1 if
> > > there is none), or even better something like %C (similar to %S -- the
> > > subject meta tag) which will be the whole meta tag above, or empty if
> > > there is none.
> >
> > *checks source code*
> >
> > Uh. Guess what? %c is supposed to do exactly that already! It outputs a
> > meta-tag if there is charset information, and it doesn't output anything if
> > there is no info.
> >
> > Try it. Let us know how it works!
> >
> >
> Now that you mentioned it I found in hmrc(4) description of %c as a cookie
> supported for attachments. Since I already found out that some of the other
> cookies described there for attachments (e.g. %f) also works for message
> and index files (although in the message case %f includes the directory and in
> the index it doesn not, so that in the latter case you need to use %y/%m/%f
> instead of %f -- but this is out of the current discussion), so it might me
> possible %c also work for message files. I'll try it and let you know. The
> question is also if %c has some default if there is no charset, but I'll check
> that as well.
>
> Thanks,
>
> Zvi.
>
>

-- 
Dr. Zvi Har'El     mailto:rl_at_math.technion.ac.il     Department of Mathematics
tel:+972-54-227607                   Technion - Israel Institute of Technology
fax:+972-4-8324654 http://www.math.technion.ac.il/~rl/     Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                          Thursday, 22 Heshvan 5762,  8 November 2001,  5:29PM
Received on Thu 08 Nov 2001 05:38:50 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:12 AM GMT GMT