Skip to Content
-2

Open dataset not able to read special characters of Portuguese language

Hi Experts,

I have used following syntax to read data from application server.

OPEN DATASET <dataset name> FOR INPUT IN TEXT MODE IGNORING CONVERSION ERRORS ENCODING UTF-8.

It is not able to read special characters of Portuguese language and im getting # wherever special character is there.

Please suggest

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 19, 2017 at 10:49 AM

    Seems that the encoding of the data is not UTF-8.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 19, 2017 at 12:43 PM

    Either the file is expected to be in UTF-8 and then ask the people to provide the file in UTF-8.

    Or the file is expected to be in another code page (character encoding) and then people should tell you which character encoding it is so that you OPEN DATASET with the right code page (https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abapopen_dataset.htm).

    I suggest you to first understand the concept of character encoding here : W3C - Character Encodings for Beginners

    Read also the ABAP documentation about IGNORING CONVERSION ERRORS, which tells you why you get # characters.

    Add comment
    10|10000 characters needed characters exceeded