in reply to Need help with binary mode and UTF-8 characters
etc. I could be way off though...use Encode qw(encode decode); while ( my $readline = <$fh> ){ my $foo = decode('UTF-8', $readline); }
use Encode qw(encode decode); while ( my $readline = <$fh> ){ my $foo = decode('UTF-8', $readline); #do stuff here $foo = encode('UTF-8', $foo); print {$output_fh} $foo; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help with binary mode and UTF-8 characters
by philrennert1 (Novice) on Dec 10, 2009 at 14:04 UTC | |
by ikegami (Patriarch) on Dec 10, 2009 at 14:56 UTC |