in reply to Comparing Unicode Greek Characters/Code Points
You should set up IO layers for STDOUT and $OUT, and never encode yourself:
binmode STDOUT, ':encoding(UTF-8)'; ... open my $OUT, '>:encoding(UTF-8)', "WE_EX2.out" or die "Can't open file WE_EX2.out for writing: $!";
But the real trouble is your call to utf8::encode, which prevents your regexes from matching.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Comparing Unicode Greek Characters/Code Points
by Anonymous Monk on Jun 23, 2011 at 23:24 UTC |