[Israel.pm] use utf8 and hebrew from file
moshegrey at ubuntu.com
Fri Dec 28 01:43:34 PST 2012
Thanks, I solved it with your help.
I tryed to extract info from an XML file, so I made new files with the info
I needed and organized the way I needed, but I guess it wrote the info not
on utf8 since now, when I use utf8 on both the input files and the output
files and the source it works perfectly
On Fri, Dec 28, 2012 at 10:20 AM, sawyer x <xsawyerx at gmail.com> wrote:
> "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.
>> On Fri, Dec 28, 2012 at 7:28 AM, moshe nahmias <moshegrey at ubuntu.com>wrote:
>>> 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
>> Perl mailing list
>> Perl at perl.org.il
> Perl mailing list
> Perl at perl.org.il
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Perl