in reply to Two CGI.pm problems

The '-encoding' attribute sets the encoding in the XML declaration, not as a META element. To get that, you'd use this (which is pretty ugly but works):

my $q = CGI->new(); print $q->header(-charset => 'utf-8'), $q->start_html( -encoding => 'utf-8', -head => $q->meta({ -http_equiv => 'Content-Type', -content => 'text/html; charset=utf-8' }) );

Replies are listed 'Best First'.
Re^2: Two CGI.pm problems
by ido50 (Scribe) on Jun 07, 2004 at 21:39 UTC
    Thanks, that fixed it.

    -------------------------
    Live fat, die young