[Israel.pm] use utf8 and hebrew from file

sawyer x xsawyerx at gmail.com
Fri Dec 28 00:20:07 PST 2012


"use utf8;" basically means "I have UTF8 characters in my source code. This
is useful if, for example, you define a string in the script with Hebrew
characters. You're basically telling perl to read your source code file as
UTF8 characters.

On Fri, Dec 28, 2012 at 2:52 AM, Shmuel Fomberg <shmuelfomberg at gmail.com>wrote:

> Hi Moshe.
>
> It is not clear to me what is 'get them', and 'move it out'.
> But generally, when processing utf8 file, use ":utf8" in the open command.
> declaring "use utf8;" won't have any effect on reading your files.
>
> Shmuel.
>
>
> On Fri, Dec 28, 2012 at 7:28 AM, moshe nahmias <moshegrey at ubuntu.com>wrote:
>
>> Hi,
>> I was trying to get some strings in Hebrew from a file (the file is utf8,
>> at least as far as I know since I changed it with iconv) but wasn't able to
>> get them while use utf8 was in effect, when I tryed to move it out it
>> suddenly worked like a charm.
>> isn't it supposed to be the other way around? why utf8 is the problem
>> maker in this case?
>>
>> _______________________________________________
>> Perl mailing list
>> Perl at perl.org.il
>> http://mail.perl.org.il/mailman/listinfo/perl
>>
>
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://mail.perl.org.il/mailman/listinfo/perl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20121228/21705619/attachment.htm 


More information about the Perl mailing list