Application Development and Automation 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: 
Read only

UTF-8 encoding / decoding?

WiTh
Newcomer
0 Likes
1,881

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
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
1,321

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.