philrennert1 has asked for the wisdom of the Perl Monks concerning the following question:
but it comes out fried. (I look at the output in Notepad++ to see what's happened.) How hard should it be to simply print out what comes in? There must be a simple way...open(OUT,">C:\\data"); binmode(OUT, ":utf8"); while(<IN>) { chomp;chomp; unless(/\S/){next} $_=Encode::decode('UTF-8',$_); print OUT $_; } close(IN);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with binary mode and UTF-8 characters
by ikegami (Patriarch) on Dec 10, 2009 at 02:45 UTC | |
by philrennert1 (Novice) on Dec 10, 2009 at 14:08 UTC | |
|
Re: Need help with binary mode and UTF-8 characters
by desemondo (Hermit) on Dec 10, 2009 at 01:57 UTC | |
by philrennert1 (Novice) on Dec 10, 2009 at 14:04 UTC | |
by ikegami (Patriarch) on Dec 10, 2009 at 14:56 UTC |