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: 

converting xstring to string, without changing the encoding and codepage

Former Member
0 Kudos
588

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

Former Member
0 Kudos
77

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.