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

Characters not displayed correctly

Former Member
0 Likes
724

Hi,

After support package installation, chararcters are not displayed correctly when i use application server,

for example when i write internal table into a file in text mode and read it after into attachment in binary mode

but characters are not correct. And after mail sent, the half or file is sent, not all data available.

What could be the reason?

Char exp in debug of attachment: ㅔ䠰㘹㌲〰㤰㘰㌍ਲ䙈〶㤳㈰〹

I get above char after i read the file, code like following:

do.
  clear attch.
  read dataset filename into attch.
  if sy-subrc <> 0.
   append attch.
   exit.
  endif.
  append attch.
enddo.

Thanks.

Hi,

After support package installation, chararcters are not displayed correctly when i use application server,

for example when i write internal table into a file in text mode and read it after into attachment in binary mode

but characters are not correct. And after mail sent, the half or file is sent, not all data available.

What could be the reason?

Char exp in debug of attachment: ㅔ䠰㘹㌲〰㤰㘰㌍ਲ䙈〶㤳㈰〹

I get above char after i read the file, code like following:

do.
  clear attch.
  read dataset filename into attch.
  if sy-subrc <> 0.
   append attch.
   exit.
  endif.
  append attch.
enddo.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
603

I think this problem is some what related to Unicode and you should use Encoding statements whith ur open dataset stetement as follows.

open dataset ....................Encoding UTF-8.

Encoding UTF-8 is for unicode environment.

Hope this will help u.

Read only

0 Likes
603

Thanks.

I have tried all about encoding but it does not work.

Is there any way to send attachment without transfering itab data to app file?

Thanks.

Read only

0 Likes
603

You can use FM 'SCP_REPLACE_STRANGE_CHARS' to replace all strange characters and craete appl file with this data.

Hope this will help u.