[l2h] charset attribute missing

Stephen Gildea gildea@stop.mail-abuse.org
Tue, 26 Nov 2002 18:06:34 -0500


There seems to have been a regression from v2002 (I think) to v2002-2-1 (1.70).
I used to get this line in the head of my HTML files:

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

and now I don't and can't figure out how to make it reappear.  

Without the character encoding declaration ("charset=iso-8859-1"), the
W3C validator (http://validator.w3.org/) won't pass the page as valid HTML.

The problem might be this hunk in &initialize:

    # load the character defs for latin-1, but don't set the charset yet
    &do_require_extension('latin1');
    $charset = $CHARSET = $PREV_CHARSET = '';

Even if I could figure out a way of doing this:

$HTML_OPTIONS = "latin1";

(I don't see a command-line option that accesses this) it won't help,
because the code shown above forces the latin1 extension anyway, and
then clobbers its setting of $CHARSET.