Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.4
Encoding::InvalidByteSequenceError
< EncodingError
7 instance methods
Raised by Encoding and String methods when the string being transcoded contains a byte invalid for the either the source or target encoding.