Skip to Content
0
Former Member
Nov 02, 2005 at 02:19 PM

Replaced # character after writing into a file with DATASET

1276 Views

Hi everybody,

ive got a really strange problem. I am trying to write a string wich contains some hash (#) characters to a file with the DATASET commando.

But after that... he replaced the # character with a few empty rectangles symbols ?!? Any idea why that happens?

The code is:

   OPEN DATASET filePath FOR OUTPUT IN TEXT MODE ENCODING UTF-8.

    LOOP AT Content INTO ls_Content.

      TRANSFER ls_Content-line TO filePath.

    ENDLOOP.

    CLOSE DATASET filePath.

First i thought it is the REPLACE CHARACTER option which is default set to #. But for some reason the option is not

working with any character.

Its pretty strange because when manupilate the String in the debugger before Tranfreing it into the file, all # charcters i put into manually are displayed ????? Why?

Is it a type problem?

Thanks for all hints,

jim