On 2/16/06, Baskaran Sankaran <[EMAIL PROTECTED]> wrote:
> Here is the new code:
> open(F1, "<:utf8", $file1) || die("Can not find file $file1\n");
> open(F2, "<:utf8", $file2) || die("Can not find file $file2\n");
> open(O, ">:utf8", $ARGV[2]);
Why no die on the third open? I believe that you c
rom: JupiterHost.Net [mailto:[EMAIL PROTECTED]
Sent: 09 February 2006 21:04
To: beginners@perl.org
Subject: Re: Reading a Unicode text file
Baskaran Sankaran wrote:
> Thanks for that but still I do face problem. I did that and it raises
a
> warning:
>
>
>
> utf8 "\xFF"
On 2/9/06, JupiterHost.Net <[EMAIL PROTECTED]> wrote:
>
>
> Baskaran Sankaran wrote:
>
> > Thanks for that but still I do face problem. I did that and it raises a
> > warning:
> >
> >
> >
> > utf8 "\xFF" does not map to Unicode at second.pl line 8,
> > <$lang_sample_fh> line 1.
>
> Excellent, so no
Baskaran Sankaran wrote:
Thanks for that but still I do face problem. I did that and it raises a
warning:
utf8 "\xFF" does not map to Unicode at second.pl line 8,
<$lang_sample_fh> line 1.
Excellent, so now we have soem info to start with :)
I have 10 sentences each in different line
I am trying to read a Unicode text file and the code fragment is as
below:
use strict;
use warnings;
and check that your open's worked and use better naming:
open my $lang_sample_fh, '<:utfd', $lang_sample
or die "Could not open $lang_sample: $!";
Doing that will likley show you any prob