dwarf has asked for the wisdom of the Perl Monks concerning the following question:
But this didn't work (of course). Then I used the utf8 module:while (chomp($line = <>)){ $line =~ s/char/replacement/g; }
But this gave me only the warning that I have "illegal Unicode characters" or something like that... So my question is simple: has anyone played with Unicode support in Perl and does anyone has an idea how can I do this?? Oh, and yes, I'm writing this on Win2K Server, Excel is 2000 and Perl is 5.6.0 ActiveState (yes, a Windows project).use utf8; while (chomp($line = <>)){ $line =~ s/char/replacement/g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unicode in Perl
by mirod (Canon) on Sep 15, 2001 at 12:42 UTC | |
|
Re: Unicode in Perl
by John M. Dlugosz (Monsignor) on Sep 15, 2001 at 06:01 UTC | |
by dwarf (Initiate) on Sep 15, 2001 at 10:36 UTC | |
by John M. Dlugosz (Monsignor) on Sep 16, 2001 at 04:37 UTC |