Re: [hypermail] charset usage

---------

New Message Reply About this list Date view Thread view Subject view Author view

From: Zvi Har'El (rl@math.technion.ac.il)
Date: Thu Nov 08 2001 - 09:10:16 CST


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@..." -->
<!-- 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@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


New Message Reply About this list Date view Thread view Subject view Author view

---------

This archive was generated by hypermail 2b29.