> 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:15PMReceived on Thu 08 Nov 2001 05:30:48 PM GMT
This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:12 AM GMT GMT