DATA(lv_str) = |Teststring|. TRY. * string -> xstring * default UTF-8 DATA(lv_xstr) = cl_abap_codepage=>convert_to( source = lv_str ). * xstring -> string * default UTF-8 DATA(lv_dec_str) = cl_abap_codepage=>convert_from( source = lv_xstr ). WRITE: / lv_str. WRITE: / lv_xstr. WRITE: / lv_dec_str. CATCH cx_root INTO DATA(e_txt). WRITE: / e_txt->get_text( ). ENDTRY.