Skip to main content.
home | support | download

Back to List Archive

Re: non ISO-8859-1 headers

From: Bill Moseley <moseley(at)>
Date: Fri Feb 20 2004 - 02:54:12 GMT
On Thu, Feb 19, 2004 at 12:27:14PM -0800, Tim Freedom wrote:
> The template I'm using is 'SWISH::TemplateToolkit' and in that file
> '/usr/lib/swish-e/perl/SWISH/' there is indeed a
> "print $cgi->header;" line, but where do I change the contents of
> that header variable (I hope it's user settable as well so that I
> don't have to fish for it (or remember it) upon package upgrades, etc).
> I tried to figure out where it is being set or how to modify it to
> no avail.

perldoc CGI

You pass a parameter to the header() method.

$ perl -MCGI -le 'print CGI->header( -charset => "UTF-8" )'
Content-Type: text/html; charset=UTF-8

Bill Moseley
Received on Thu Feb 19 18:54:18 2004