Re: Reading a Unicode text file

2006-02-16 Thread Tom Phoenix
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

RE: Reading a Unicode text file

2006-02-16 Thread Baskaran Sankaran
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"

Re: Reading a Unicode text file

2006-02-10 Thread Jay Savage
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

Re: Reading a Unicode text file

2006-02-09 Thread JupiterHost.Net
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

Re: Reading a Unicode text file

2006-02-09 Thread JupiterHost.Net
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