In Linux, UTF-8 in the default locale has become more and more popular, and most terminal emulators support it. You should not see complete gibberish. But garbling and reverse text are not surprising. Some emulators bidi out of the box, and most don't. IIRC mlterm does.
I haven't done this stuff on Windows in a while. Who is your audience? How much of your environment are you willing to fool around with? With some setup you can cook up a local PuTTY that talks to cygwin on localhost (I think you'll find info about this if you plug these three keywords into a search engine). PuTTY is by far a better terminal program than the DOS box, and even has bidi on some versions. You will want to control your codepage "translation" though. Hope this helps. On Sun, Jul 11, 2010 at 6:21 PM, Meir Guttman <[email protected]> wrote: > Thanks Erez! > > Well... shit! > > If anybody disagrees with Erez, I (and I am sure Erez too) will be glad to > here about it... > > 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 > -- Gaal Yahas <[email protected]> http://gaal.livejournal.com/
_______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
