Skip to Content
-2

Open dataset not able to read special characters of Portuguese language

Dec 19, 2017 at 10:28 AM

95

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Horst Keller
Dec 19, 2017 at 10:49 AM
3

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded

what to do on this?

It is existing code and analysing on why it is giving # for special characters.

0

Read appropriate data or you cannot use the existing code.

0
1
Sandra Rossi Dec 19, 2017 at 12:43 PM
1

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.

Share
10 |10000 characters needed characters left characters exceeded