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

function for non unicode-characters

Former Member
0 Likes
456

Hi

is there a function that permit to translate a unicode characters to a non-unicode characters?

For example with this function " à " must become " a ".

thank you for your help

2 REPLIES 2
Read only

Former Member
0 Likes
404

Hi,

Check this FM: SCP_REPLACE_STRANGE_CHARS

Thanks,

Senthil

Read only

Former Member
0 Likes
404

Copy paste the below code and execute. This could also solve your problem.

DATA: BEGIN OF trans OCCURS 0,

auml TYPE x VALUE 'C4', "'Ä'

c_8e TYPE c VALUE 'A',

gra TYPE x VALUE 'E0', "'à'

c_gra TYPE c VALUE 'a',

END OF trans.

*----

-


DATA : input(40).

DATA : output(40).

input = 'ÄBàp'.

output = input.

TRANSLATE output USING trans.

condense output no-gaps.

write 😕 input.

write:/ output.

Thanks,

Senthil