Encoding URL

For encoding URL, you can use method ESCAPE_URL from mentioned class.


DATA: lv_unescaped TYPE string,
      lv_escaped   TYPE string.

CALL METHOD cl_http_utility=>escape_url
  EXPORTING
    unescaped = lv_unescaped
  RECEIVING
    escaped = lv_escaped.

   
DATA: lv_unescaped TYPE string,
      lv_escaped   TYPE string.

CALL METHOD cl_http_utility=>escape_url
  EXPORTING
    unescaped = lv_unescaped
  RECEIVING
    escaped = lv_escaped.

OR with simplified call:


lv_escaped = cl_http_utility=>escape_url( lv_unescaped ).


Serkan AKKAVAK
Computer Engineer
serkurumsal@yandex.com