[Israel.pm] Perl-TK frame - showing Gibberish instead of Hebrew / Arabic characters from UTF-8 Input file.

Mikhael Goikhman migo at homemail.com
Mon Jun 2 00:35:18 PDT 2008


On 02 Jun 2008 08:24:35 +0300, Oren Maurer wrote:
> 
> One small question:
> The "use Encode qw{decode_utf8};" - is it equivalent of  "use utf8; " ??

No. The first just imports function "decode_utf8", and the second affects
the way all non-ascii characters in your source code are treated. But by
running decode_utf8() on non-ascii strings/bytes (static or dynamic) you
may achieve the similar goal.

perldoc utf8; man Encode

Regards,
Mikhael.

-- 
perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'



More information about the Perl mailing list