Skip to content
On this page
class · Ruby 4.0

Encoding::Converter

< Object 14 instance methods 3 class methods

Encoding conversion class.

Class methods 3

Instance methods 14

Constants

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