Posted on 2008-09-15 10:25:25-07 by pmarquess in response to 8803
Re: Error Wide character in IO::Compress::Gzip::write:
You need to explicitly encode any text into utf8 before compression. I see you are using memGzip, so here is an exmaple:
use Encode; $data = Compress::Zlib::memGzip(Encode::encode_utf8($body));
Similarly, if you want to uncompress utf8 data you need to do this
$original = Encode::decode_utf8(Compress::Zlib::memGunzip($data));
Paul
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.