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

converting xstring to string, without changing the encoding and codepage

Former Member
0 Likes
896

hi all,

i am converting xstring to string, using the funcftion module

ECATT_CONV_XSTRING_TO_STRING.

but this FM is changing the encodings, like utf-8 to utf-16,

why this is happening, my system is unicode compatible.

any suggesation ???

regards,

Sudeep

1 REPLY 1
Read only

Former Member
0 Likes
385

Friend,

Call the FM like below....

CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'

EXPORTING

IM_XSTRING = x

IM_ENCODING = 'UTF-8'

IMPORTING

EX_STRING = x.