Re: [hypermail] charset usage

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


On Thu, 8 Nov 2001, Daniel Stenberg wrote:
> On Thu, 8 Nov 2001, Zvi Har'El wrote:
>
> > is it possible to make hyper mail to generate the coresponding HTML,
> > e.g., <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
> > for UTF-8 encoded messages, etc.? For messages which do not identify
> > their charset this may be not generated.
>
> I honestly thought that it already made this. At least I recall that I once
> added code that was supposed to do this...
>
>

The charset is added to the meta-data which appears as a comment:

<!-- received="Sun Sep 12 16:54:27 1999" -->
<!-- isoreceived="19990912145427" -->
<!-- sent="Sat, 11 Sep 1999 16:40:09 -0700" -->
<!-- isosent="19990911234009" -->
<!-- name="..." -->
<!-- email="..." -->
<!-- subject="Re: Verne's sentence" -->
<!-- id="199909112340.QAA07477_at_..." -->
<!-- charset="utf-8" -->
<!-- inreplyto="Verne's sentence" -->
<!-- expires="-1" -->

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.

Best,

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,  4:59PM
Received on Thu 08 Nov 2001 05:15:04 PM GMT

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