Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Zlib::GzipReader#external_encoding
() -> ::Encoding
external_encoding
ext/zlib/zlib.c
View on GitHub ↗
static VALUE
rb_gzreader_external_encoding(VALUE self)
{
return rb_enc_from_encoding(get_gzfile(self)->enc);
}
See Zlib::GzipReader documentation for a description.