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