Cannot read Oracle 12 NVARCHAR2 field with Lazarus 2.2.2+ZeosLib 7.2.14 on Linux

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
ionsem
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 11.09.2022, 09:16

Cannot read Oracle 12 NVARCHAR2 field with Lazarus 2.2.2+ZeosLib 7.2.14 on Linux

Post by ionsem »

Hello Everyone,

I'm using:
  • Lazarus 2.2.2/FPC 3.2.2/ZeosLib 7.2.14.
  • Database: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0
  • Oracle Instant Client Version 21.7.0.0.0
I can successfully connect to database, make queries and execute stored procedures.
The problem is only when I'm trying to query NVARCHR2 fields (unicode), instead of unicode text I get "¿¿¿¿¿" in data controls (like TDBGrid).
ClientCodePage on ZConnection is set to AL32UTF8.
NLS_LANG=AMERICAN_AMERICA.AL32UTF8.
sqlplus can read successfully that field.
Please help.
Thanks.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Cannot read Oracle 12 NVARCHAR2 field with Lazarus 2.2.2+ZeosLib 7.2.14 on Linux

Post by marsupilami »

Hello,

honestly I don't know what is going on. Could you please try what happens if you use Zeos 8.0 from Subversion?

Best regards,

Jan
ionsem
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 11.09.2022, 09:16

Re: Cannot read Oracle 12 NVARCHAR2 field with Lazarus 2.2.2+ZeosLib 7.2.14 on Linux

Post by ionsem »

Hi Jan,

the same behavior. See here the image with Lazarus, ZConnection properties (including version), the app with result and select with sqlplus (which works):
https://drive.google.com/file/d/1pnYN_v ... sp=sharing
Post Reply