Thanks Shmuel! Isn't Cp1255 Unicode too?
As I said in a previous post of this thread, this is not a pressing issue for me right now. So I'll give it a rest now. (You see, I am spoiled ;-). I am used to get a "quick fix" to most of my Perl problems from the community. But I see that this one is not going to such. I am rather surprised though. I would expect Microsoft at least to support Hebrew and/or Unicode on something so basic as the command window. And as to many applications breaking down with BiDi, they can include a "compatibility mode", can't they? But its Microsoft, right?) Regards, Meir -----Original Message----- From: perl-boun...@perl.org.il [mailto:perl-boun...@perl.org.il] On Behalf Of Shmuel Fomberg Sent: Sunday, July 11, 2010 10:53 PM To: Perl in Israel Subject: Re: [Israel.pm] Hebrew in the command window Hi Meir. Meir Guttman wrote: > 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!) The DOS box is not unicode-aware. so you need to convert the text to hebrew 8-bit encoding before printing it out. try to convert it (decode) to "iso-8859-8" or "cp865", or, if these two doesn't work, try "cp1255". Of course, you need to make sure that your terminal is loaded with hebrew-capable fonts. I would advise to first write a small program that print a nice table, with all the characters above 30. you should see hebrew letters in there, or you need to change the font. In addition, it will give you a clue which code page you need to use. Indexed by the 'Alef' position: 128 - cp865 224 - iso-8859-8 Have fun. Shmuel. _______________________________________________ Perl mailing list Perl@perl.org.il http://mail.perl.org.il/mailman/listinfo/perl _______________________________________________ Perl mailing list Perl@perl.org.il http://mail.perl.org.il/mailman/listinfo/perl