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: 

Unknown Junk character in Chinese mail

0 Kudos

unknown-chanarcter.pngHello All,

I am facing a wierd issue wherein in SOST the output of my Chinese mail looks good however in my outlook mail box I am getting an unknown character in mail body.

i have checked the SO10 text which is read for creating mail body noting seems to be wrong. In SOST also output mail looks good. Just in inbox at the end this character is appended. Please note that rest of the email is good and coming perfectly in chinese.

4 REPLIES 4

0 Kudos

Please help me to resolve this issue

omer_sakar
Participant
0 Kudos

Hi,

While getting lines from SO10 ,you can call function 'CONVERT_ITF_TO_ASCII' after 'READ_TEXT' function.

Best Regards,

0 Kudos

Thanks Omer for taking time to respond to my query.

Here do i need to mention language etc optional fields? Shall I just pass the table from Read_text FM directly here ?

CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
* EXPORTING
* CODEPAGE = '0000'
* FORMATWIDTH = 72
* LANGUAGE = SY-LANGU
* TABLETYPE = 'ASC'
* TAB_SUBSTITUTE = ' '
* LF_SUBSTITUTE = ' '
* REPLACE_SYMBOLS = 'X'
* REPLACE_SAPCHARS = 'X'
* IMPORTING
* FORMATWIDTH_E =
* X_DATATAB =
* C_DATATAB =
* X_SIZE =
TABLES
itf_lines = lt_lines
* EXCEPTIONS
* INVALID_TABLETYPE = 1
* OTHERS = 2

omer_sakar
Participant
0 Kudos

itf_lines : your import internal table(this is internal table from read_text )

C_DATATAB : your export internal table

CALL FUNCTION 'CONVERT_ITF_TO_ASCII'

    EXPORTING

      language  = sy-langu

      tabletype = 'ASC'

    IMPORTING

      c_datatab = ct_datatab

    TABLES

      itf_lines = itf_lines[].