snaporaz has asked for the wisdom of the Perl Monks concerning the following question:
It does not work. It actually screws up upper ASCII characters that are OK when NOT using the utf8 part in opening the output file. Any idea about what I am missing here?use Encode; $infile=shift; $outfile=shift; open IN, $infile or die; open OUT, ">:utf8", "$outfile" or die; while(<IN>) { print OUT $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: writing utf8 files under WindowsXP
by kvale (Monsignor) on Apr 28, 2004 at 16:46 UTC | |
|
Re: writing utf8 files under WindowsXP
by matija (Priest) on Apr 28, 2004 at 18:02 UTC | |
by Anomynous Monk (Scribe) on Apr 28, 2004 at 18:50 UTC | |
by snaporaz (Acolyte) on Apr 28, 2004 at 21:00 UTC | |
by graff (Chancellor) on Apr 29, 2004 at 04:21 UTC | |
by Anonymous Monk on Apr 29, 2004 at 05:52 UTC | |
|
Re: writing utf8 files under WindowsXP
by borisz (Canon) on Apr 28, 2004 at 18:33 UTC |