Skip to Content

Unknown Junk character in Chinese mail

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 03, 2017 at 12:54 PM

    Hi,

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

    Best Regards,

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Feb 03, 2017 at 02:21 PM

    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[].
    Add comment
    10|10000 characters needed characters exceeded