Re: [hypermail] charset usage

From: Daniel Stenberg <>
Date: Thu, 8 Nov 2001 16:13:46 +0100 (MET)
Message-ID: <>

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!

      Daniel Stenberg - - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Thu 08 Nov 2001 05:18:46 PM GMT

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