lev has asked for the wisdom of the Perl Monks concerning the following question:
My problem may be quite simple.
I applied the following test script to the perl module:
‘Locale- Hebrew-1.04’, http://search.cpan.org/~autrijus/Locale-Hebrew-1.04/Hebrew.pm
Is something missing or obviously wrong?
Are there any clues in the output, i.e. only the numbers(\5e9\5dc\5d5\5dd\20\31\32\33 = \ם\ו\ל\ש\space\1\2\3) compute?
*actually, my output presents an empty square in place of "&65533", which, if written correctly comes out here as "�" (interesting?)#!/usr/local/bin/perl -w # # This program demonstrates Locale::Hebrew v1.04 support for UNICODE # (use Perl 5.8 and above) use Locale::Hebrew 1.04; use locale; eval (' use 5.8.3; use encoding utf8; my $msg= "\x{5e9}\x{5dc}\x{5d5}\x{5dd}\x20\x31\x32\x33"; print "Original utf8: ",$msg, "\n"; my $new_msg = hebrewflip($msg); print "Result utf8: ","$new_msg", "\n"; '); print $@ if $@; ------------------------------- Output: Original utf8: �©��� Result utf8: 123 ��©
Much thanks for any guidance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unicode (Hebrew) Module
by ikegami (Patriarch) on Apr 05, 2009 at 22:19 UTC | |
|
Re: Unicode (Hebrew) Module
by Anonymous Monk on Apr 05, 2009 at 15:45 UTC |