Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Encoding::InvalidByteSequenceError#source_encoding_name

ecerr.source_encoding_name → string

Returns the source encoding name as a string.

See also #source_encoding #readagain_bytes also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0