High all!

Despite my better judgment, I didn't drop the issue. I learned about the
package "Encode". Well, one of its methods is Encode->encodings(). It lists
the available ENCODINGs (and constants).
Well, look at it, the script:

use strict;
use encoding "utf8";
use Encode;
my @list = Encode->encodings();
print join("\n", @list), "\n";

__END__

Yields this pitiful list:

ascii
ascii-ctrl
iso-8859-1
null
utf-8-strict
utf8

In other words totally useless! All other recognizable encodings are
_aliases_!

I am too much of a newbie to try and add the CP_865, ISI-8859-8-I or the
CP_1255. Will one of you experts pick up the baton?

Regards,
Meir

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Erez Schatz
Sent: Sunday, July 11, 2010 6:06 PM
To: Perl in Israel
Subject: Re: [Israel.pm] Hebrew in the command window

On 11 July 2010 17:55, Meir Guttman <[email protected]> wrote:
> Hello all "Lushen Koidesh" speakers!
>
>
>
> The problem I have is when I "print" Hebrew to the STDOUT device. It is
> shown as "gibberish." (BTW, re-directing it to a file and opening it in a
> UTF-8 compatible editor shows the Hebrew fine, thank you!)

It's a known issue with terminals, in both Windows and Linux. The
usual spiel is that
Hebrew/BiDi support will break too many tools and apps to be considered.




>
> There is a PowerShell command shell from the same esteemed corporation.
Was
> anybody successful in using it to display Hebrew?

PowerShell (at least, version 1 of it, which I have) uses Windows
Terminal for UI (the window menu is the same as the "cmd" one). So no
joy there as well.

-- 
Erez

Observations, not opinions
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to