BlogGitHub
Reference/ORK/IO/ORK/IF_ENCODING
Interface/ORK/IF_ENCODING
Encoding
Package
/ORK/IO
Members
5
Description

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.

2 items
Methods
get_bytes
MethodPublic
GetBytes

Encodes the specified string into a byte sequence using this encoding.

Parameters

NameDescriptionstringInput string to encode.resultEncoded bytes as XSTRING.

Signature

METHODS get_bytes IMPORTING !string TYPE string
                    RETURNING VALUE(result) TYPE xstring.
get_string
MethodPublic
GetString

Decodes the specified byte sequence into a string using this encoding.

Parameters

NameDescriptionbytesInput byte sequence.resultDecoded string.

Signature

METHODS get_string IMPORTING bytes TYPE xstring
                     RETURNING VALUE(result) TYPE string.
1 item
Types
ty_replacement_char
TypePublic

Signature

TYPES ty_replacement_char TYPE c LENGTH 1.
2 items
Data
name
DataPublic
Name

The canonical name of the encoding (for example "utf-8", "utf-16", "iso-8859-1").

Signature

DATA name TYPE string READ-ONLY.
replacement
DataPublic
Replacement

The replacement string used when invalid byte sequences or characters cannot be converted.

Signature

DATA replacement TYPE ty_replacement_char READ-ONLY.
Repository11 packages · 113 objects
124 items