Encodes the specified string into a byte sequence using this encoding.
Parameters
stringresultSignature
METHODS get_bytes IMPORTING !string TYPE string
RETURNING VALUE(result) TYPE xstring.
Represents a text encoding that converts between string and byte sequences. Similar in concept to System.Text.Encoding in .NET. Provides controlled conversion behavior including replacement handling.
Encodes the specified string into a byte sequence using this encoding.
stringresultMETHODS get_bytes IMPORTING !string TYPE string
RETURNING VALUE(result) TYPE xstring.Decodes the specified byte sequence into a string using this encoding.
bytesresultMETHODS get_string IMPORTING bytes TYPE xstring
RETURNING VALUE(result) TYPE string.TYPES ty_replacement_char TYPE c LENGTH 1.The canonical name of the encoding (for example "utf-8", "utf-16", "iso-8859-1").
DATA name TYPE string READ-ONLY.The replacement string used when invalid byte sequences or characters cannot be converted.
DATA replacement TYPE ty_replacement_char READ-ONLY.