[Israel.pm] CGI and charset mistmatch

Gabor Szabo gabor at perl.org.il
Wed Jun 2 04:07:58 PDT 2004


On Wed, 2 Jun 2004, Shlomo Yona wrote:

add
                -encoding=> 'ISO-8859-8',
to start_html
as seen below:

>  use CGI;
>
>  my $q = CGI->new;
>  my $input = $q->param('input_text');
>  print $q->header(-charset=>'ISO-8859-8'),
> 	$q->start_html(
                -encoding=> 'ISO-8859-8',
> 		-head=>$q->meta(
> 			{
> 				-http_equiv => 'Content-Type',
> 				-content=>"text/html; charset=ISO-8859-8"
> 			}
> 		)
> 	),
> 	$q->h1('Analysis results');
> output_analysis(analyze($input));
> print $q->end_html;


Gabor



More information about the Perl mailing list