perlunitut: Unicode in Perl#Decoding
use Encode; ... while( my $bytesread = $bz->bzreadline(my $line) ){ $bytesread ==-1 and warn sprintf "Error: $bz->bzreadline : %d : %s +", $bz->bzerror, $bz->bzerror; $line = decode('utf8', $line ); ... }
See also perluniintro, Encode...
In reply to Re: Unicode in bz2 compressed files
by Anonymous Monk
in thread Unicode in bz2 compressed files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |