On this page
End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
Encoding::Converter
Encoding conversion class.
Class methods 3
Instance methods 14
Stop converting after some output is complete but before all of the input was consumed. See primitive_convert for an example.
Decorator for converting LF to CRLF
Decorator for converting LF to CR
Mask for invalid byte sequences
Replace invalid byte sequences
Decorator for converting CRLF and CR to LF when writing
Indicates the source may be part of a larger string. See primitive_convert for an example.
Replace byte sequences that are undefined in the destination encoding with an XML hexadecimal character reference. This is valid for XML conversion.
Mask for a valid character in the source encoding but no related character(s) in destination encoding.
Replace byte sequences that are undefined in the destination encoding.
Decorator for converting CRLF and CR to LF
Escape as XML AttValue
Escape as XML AttValue
Escape as XML CharData