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.
| Library | Role | Version | License |
|---|---|---|---|
| Astro | Site framework | 6.3.1 | MIT |
| Astro React | React integration | 5.0.4 | MIT |
| Astro Sitemap | Sitemap generation | 3.7.2 | MIT |
| UI5 Web Components | UI primitives | 2.22.0 | Apache-2.0 |
| UI5 Web Components Fiori | Fiori shell components | 2.22.0 | Apache-2.0 |
| UI5 Web Components Icons | Icon set | 2.22.0 | Apache-2.0 |
| UI5 Web Components React | React wrappers | 2.22.0 | Apache-2.0 |
| React | UI runtime | 19.2.6 | MIT |
| React DOM | DOM renderer | 19.2.6 | MIT |
| Shiki | Syntax highlighting | 4.0.2 | MIT |
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.