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 characters appears in Binary mode

anupam_srivastava2
Participant
0 Likes
650

Hi All

I am opening a file using open dataset, but some specail characters appear with £ sigh.

my code is

open dataset filepath for APPENDING in text mode ENCODING UTF-8.

transfer H_FHS TO FILEPATH.

using appending, the sp chars doesnt appear in text mode, but when you open the file in binary mode it appears.

I have tried ENCODING in Default, ANSI, UTF-8 and file format Auto, Text and Binary.

but I am not able to remaove that sp char.

please suggest what can be done , and why it appears??

Hi All

I am opening a file using open dataset, but some specail characters appear with £ sigh.

my code is

open dataset filepath for APPENDING in text mode ENCODING UTF-8.

transfer H_FHS TO FILEPATH.

using appending, the sp chars doesnt appear in text mode, but when you open the file in binary mode it appears.

I have tried ENCODING in Default, ANSI, UTF-8 and file format Auto, Text and Binary.

but I am not able to remaove that sp char.

please suggest what can be done , and why it appears??

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
508

Check the sap help on code page addition

... {BINARY MODE} 
  | {TEXT MODE ENCODING {DEFAULT|UTF-8|NON-UNICODE}} 
  | {LEGACY BINARY MODE [{BIG|LITTLE} ENDIAN] [CODE PAGE cp]} 
  | {LEGACY TEXT MODE [{BIG|LITTLE} ENDIAN] [CODE PAGE cp]} ... .

. ... CODE PAGE cp

Read only

anupam_srivastava2
Participant
0 Likes
508

thanks