dexter29 has asked for the wisdom of the Perl Monks concerning the following question:
### Got it due to the info below. Many thanks.my $File = 'X:\TestData.txt'; my @FileData = do { local(*ARGV); @ARGV=$File; <> }; map {Encode::encode("utf-8", $_)} @FileData; WriteFile('X:\Test.txt', @FileData);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text file to UTF-8 encoding
by FunkyMonk (Bishop) on Jul 31, 2008 at 10:39 UTC | |
|
Re: Text file to UTF-8 encoding
by moritz (Cardinal) on Jul 31, 2008 at 10:36 UTC | |
|
Re: Text file to UTF-8 encoding
by davorg (Chancellor) on Jul 31, 2008 at 11:03 UTC | |
|
Re: Text file to UTF-8 encoding
by AltBlue (Chaplain) on Jul 31, 2008 at 14:39 UTC | |
|
Re: Text file to UTF-8 encoding
by sasdrtx (Friar) on Jul 31, 2008 at 14:42 UTC | |
by massa (Hermit) on Jul 31, 2008 at 15:04 UTC | |
by moritz (Cardinal) on Jul 31, 2008 at 15:09 UTC |