ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Character String and Byte String Processing →  System Classes for Character String and Byte String Processing → 

Class for Handling Code Pages

The class CL_ABAP_CODEPAGE contains methods for converting the representation of cha5racter strings between different code pages.

Example

Converts the content of a string into its UTF-8 representation.

DATA: str  TYPE string,
      xstr TYPE xstring.

xstr = cl_abap_codepage=>convert_to(
  source      = str
  codepage    = `UTF-8` ).