instance method
Encoding::Converter#source_encoding
() -> ::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.