Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set encoding utf8 layer? #48

Open
vitalysennikov opened this issue Nov 15, 2022 · 1 comment
Open

How to set encoding utf8 layer? #48

vitalysennikov opened this issue Nov 15, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@vitalysennikov
Copy link

This code don't work for me:

$fh = IO::Uncompress::Gunzip->new($fname);
$fh->binmode(":encoding(utf8)");

The same code for IO::File works fine. What I have to do, that this work for IO::Uncompress::Gunzip?
Now I am forced to utf8::decode() the read data. Can you help me please?

@pmqs pmqs self-assigned this Nov 15, 2022
@pmqs pmqs added the enhancement New feature or request label Nov 15, 2022
@pmqs
Copy link
Owner

pmqs commented Nov 15, 2022

Hey @vitalysennikov

at present there isn't support for encoding/decoding in the IO::Uncompress::* modules. You have to do it in two steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants