Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

UTF-8 encoding / decoding?

WiTh
Newcomer
0 Kudos

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!

1 REPLY 1

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.