Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Unicode in bz2 compressed filesby Anonymous Monk |
on Sep 04, 2011 at 20:52 UTC ( [id://924119]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Dear Monks, I have been using Compress::Bzip2 to uncompress & compress files for a while now. However, now I need to work with files in unicode. I know about and open FILE, '<:utf8', $file when reading from/writing to normal text files, but I could not find anything with Google in this case. Is there a way to tell Perl the files are in Unicode when reading from/writing to them using
Am I going to have to switch to another package for compression, provided I find one that can deal with unicode, or am I going to have to do it the old fashioned way by decompressing first and then processing the plain text files? Any suggestion here?
Back to
Seekers of Perl Wisdom
|
|