Skip to Content
avatar image
Former Member

UTF-8 encoding / decoding?

Hello,

we implemented a RFC, which is been called by a non-sap system.

To one of the import parameters, plain-text is transmitted. This value can also contain 'German special character (like ä, ö, ü).

The text doesn't show up in the SAP system correctly: E.g. 'Kündigung' gets converted into 'Kündigung'.

How can I decode the value 'Kündigung' back into 'Kündigung' again?

Kind regards!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 17, 2017 at 01:59 PM

    Try to cast the text field to a hex field and use cl_abap_codepage=>convert_from for that field. If it is coded in UTF-8 it should work. Otherwise specify an appropriate code page.

    Add comment
    10|10000 characters needed characters exceeded