cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ODBC for ABAP error returning Non-ASCII characters

0 Likes
255

Hi,

have been trying out the ODBC for ABAP connector on ABAP Cloud Trial 2023SP00 on Linux.

Created a CDS view that exposes SBOOK. When retrieving the data I receive non-ASCII codes which result in errors in Excel and other ODBC consumers.

ignacio_soriano73_0-1765187915991.png

I tried changing the Charset property in odbc.ini but no change.

Any suggestion of why I am not receiving UTF-8 which I think is the default?

Cheers

Ignacio 

Ps: Tests with ODBCforABAP on Windows with Excel for data consumption. No errors.

ignacio_soriano73_0-1765276502616.png

Checked locale on Linux which is en_US.UTF-8

 

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

Just provinding myself the solution to the topics I mentioned.

1). iusql cannot return non-ASCII characters as it never was meant to do so. See iusql code which converts unicode to ASCII (no matter which option you provide in .odbc.ini)

2). UseWChar=1 in the ODBC driver properties will return proper Unicode in your consuming app

Question can be closed.

Cheers