Encode and Decode String in SAP UTF8 Format
* Encode and Decode String in SAP UTF8 Format. Report Program REPORT zab_encode_decode_utf8 . PARAMETERS : p_string TYPE string . DATA : lv_encode TYPE xstring , lv_decode TYPE string . WRITE : / 'Plain string : ' , p_string COLOR 1 . ******************************************************** CALL METHOD cl_http_utility => if_http_utility ~ encode _utf8 EXPORTING unencoded = p_string RECEIVING encoded = lv_encode . WRITE : / 'Encoded string : ' , lv_encode COLOR 2 . ******************************************************** CALL METHOD cl_http_utility => if_http_utility ~ decode _utf8 EXPORTING encoded = lv_encode ...