[Israel.pm] Hebrew strings in perl
shmuelfomberg at gmail.com
Wed Nov 28 04:39:12 PST 2012
On Wed, Nov 28, 2012 at 9:05 PM, Dov Levenglick wrote:
> I haven't tried printing Hebrew strings in Perl yet, I seem to recall a
> talk last YAPC and only having to add use utf8;
> use utf8;
> print "דוב";
> why does this produce the following:
> Wide character in print at Desktop\test.pl line 2.
Perl is pushing unicode into th concole. (and that is why it warns)
however, on Windows, the default concole box does not know how to handle
So you either need to install a dos box that do know how to display
unicode, or figure out which encoding your concole is displaying and encode
the text to that before printing.
(or just push a layer to stdout using binmode)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Perl