Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: IO::Compress::Gzip and unicode

by pmqs (Friar)
on Mar 02, 2018 at 23:35 UTC ( [id://1210273]=note: print w/replies, xml ) Need Help??


in reply to IO::Compress::Gzip and unicode

As things stand you need to explicitly encode the data to utf8. To do that you need to use encode_utf8 rather than decode_utf8.

Change this line

print $fh $opts->{'data'};

to this

print $fh Encode::encode_utf8($opts->{'data'}) ;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1210273]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-18 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found