Type:
Class
Constants:
INVALID_MASK : Document-const

INVALID_MASK

Mask for invalid byte sequences

INVALID_REPLACE : Document-const

INVALID_REPLACE

Replace invalid byte sequences

UNDEF_MASK : Document-const

UNDEF_MASK

Mask for a valid character in the source encoding but no related character(s) in destination encoding.

UNDEF_REPLACE : Document-const

UNDEF_REPLACE

Replace byte sequences that are undefined in the destination encoding.

UNDEF_HEX_CHARREF : Document-const

UNDEF_HEX_CHARREF

Replace byte sequences that are undefined in the destination encoding with an XML hexadecimal character reference. This is valid for XML conversion.

PARTIAL_INPUT : Document-const

PARTIAL_INPUT

Indicates the source may be part of a larger string. See #primitive_convert for an example.

AFTER_OUTPUT : Document-const

AFTER_OUTPUT

Stop converting after some output is complete but before all of the input was consumed. See #primitive_convert for an example.

UNIVERSAL_NEWLINE_DECORATOR : Document-const

UNIVERSAL_NEWLINE_DECORATOR

Decorator for converting CRLF and CR to LF

CRLF_NEWLINE_DECORATOR : Document-const

CRLF_NEWLINE_DECORATOR

Decorator for converting LF to CRLF

CR_NEWLINE_DECORATOR : Document-const

CR_NEWLINE_DECORATOR

Decorator for converting LF to CR

XML_TEXT_DECORATOR : Document-const

XML_TEXT_DECORATOR

Escape as XML CharData

XML_ATTR_CONTENT_DECORATOR : Document-const

XML_ATTR_CONTENT_DECORATOR

Escape as XML AttValue

XML_ATTR_QUOTE_DECORATOR : Document-const

XML_ATTR_QUOTE_DECORATOR

Escape as XML AttValue

new

Encoding::Converter.new(source_encoding, destination_encoding)Encoding::Converter.new(source_encoding, destination_encoding, opt)Encoding::Converter

2015-04-04 18:19:33
finish

ec.finish â string Instance Public methods Finishes the converter. It returns

2015-04-04 18:43:08
last_error

ec.last_error â exception or nil Instance Public methods Returns an exception

2015-04-04 18:52:33
convpath

ec.convpath â ary Instance Public methods Returns the conversion path

2015-04-04 18:36:31
primitive_errinfo

ec.primitive_errinfo â array Instance Public methods

2015-04-04 18:58:23
asciicompat_encoding

Encoding::Converter.asciicompat_encoding(string) â encoding or nilEncoding::Converter.asciicompat_encoding(encoding) â encoding or nil

2015-04-04 18:13:09
source_encoding

ec.source_encoding â encoding Instance Public methods Returns the source encoding

2015-04-04 19:17:39