Skip to Content
0

UTF-8 encoding / decoding?

Jan 17, 2017 at 01:43 PM

87

avatar image

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Horst Keller
Jan 17, 2017 at 01:59 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded