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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 19, 2017 at 10:49 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.