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

special character problem using smartforms xsf/html

janphillip_hft
Explorer
0 Likes
371

Hello experts,

I'm using smartforms to send emails in html without attachments. I take the raw data from 'job_output_info-xmloutput-trfresult-content[]' and convert it with 'NLS_STRING_CONVERT_TO_SYS'. I face the problem that special characters like 'ä', 'ö', 'ü' are not displayed correctly, but as 'ä', 'ö', 'ü'.

Can anyone give me a hint where coding formats can be set?

Thanks in advance

Jan Phillip Höft

1 REPLY 1
Read only

janphillip_hft
Explorer
0 Likes
289

Using the following function solves:

CALL METHOD CL_ABAP_CONV_IN_CE=>CREATE

EXPORTING

INPUT = l_xstring

ENCODING = 'UTF-8'

REPLACEMENT = '?'

IGNORE_CERR = ABAP_TRUE

RECEIVING

CONV = loc_CONV.