Curtis Poe wrote:
> 
> --- fliptop <[EMAIL PROTECTED]> wrote:
> > > print "Content-type:  text/html\n\n";
> > >
> > i could, since both statements do the same thing.  now that i think
> > about it, i really don't know why i still do it manually.  force of
> > habit, i guess.  that's the beauty of perl, 'tmtowtdi'!
> 
> That's *almost* correct.  CGI.pm also states the "charset" that the document is to 
>be rendered
> with:
> 
>     C:\>perl -MCGI -e "$q=CGI->new;print $q->header"
>     Content-Type: text/html; charset=ISO-8859-1

well, as you'll see in the next step, i include this line in the head
section of the html document:

<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">

does that do the same thing?

in any case, i'll change the cgi code to use the cgi->header() method. 
thanks for the tip.

Reply via email to