End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Encoding::Converter#destination_encoding
ec.destination_encoding → encoding
transcode.c
View on GitHub ↗
static VALUE
econv_destination_encoding(VALUE self)
{
rb_econv_t *ec = check_econv(self);
if (!ec->destination_encoding)
return Qnil;
return rb_enc_from_encoding(ec->destination_encoding);
}
Returns the destination encoding as an Encoding object.