[Israel.pm] Re: Upcomming meeting: Hebrew and Perl

Uri Bruck bruck at actcom.net.il
Thu Jun 17 04:14:37 PDT 2004


Shlomo Yona wrote:

> On Thu, 17 Jun 2004, Gabor Szabo wrote:
> 
> 
>>BTW I think in the example Shlomo sent just 2 weeks ago
>>you could see how he sets the HTTP header.
>>
>>http://www.perl.org.il/pipermail/perl/2004-June/005140.html
> 
> 
> Well -- now I do this:
> 
> my $charset='ISO-8859-8';
> 
> my $q = CGI->new;
> # some code goes here
> print 
> 	$q->header(-charset=>$charset),
>         $q->start_html(
> 		-encoding=>$charset,
> 		-head=>$q->meta(
> 			{
> 				-http_equiv =>'Content-Type',
> 				-content =>"text/html; charset=$charset"
> 			}
> 		)
>         );
> 
> It works great under standard obeying browsers.
> IE still won't interpret the output as ISO-8859-8.
> 
> The server (Apache) is set to have as default 'UTF-8', and I
> cannot change that.
> 
> 
> Any ideas how to have IE supported? What is bugging IE
> anywya?

I managed fine with this:
my $cgi = new CGI;
$cgi -> charset('8859-8-i');
print $cgi -> header();


> 




More information about the Perl mailing list