Print Thread
charset problem by OracleDictionary.FieldKinds
#54006 09/15/16 06:51 AM
Joined: Mar 2000
Posts: 8
Herdecke, NRW, Germany
S
Member
OP Offline
Member
S
Joined: Mar 2000
Posts: 8
Herdecke, NRW, Germany
Hi,

I'm using a combination of TOracleDataSet, TDataSetProvider and TClientDataSet for showing data. But in some cases (e.g. join between 2 tables), string-fields from the non-updateable table will be shown as chinese characters instead of normal alphanumerics (a..z or 0..9). Normally I've set TOracleDataSet.OracleDictionary.FieldKinds = True. First when I set FieldKinds = False the string-fields will be shown correctly. Do You know why?

I've to say that this problem will only exists with TClientDataSet. If I will link the TDataSource direct to the TOracleDataSet it will be always shown correctly.

Because of charset-problems in ORACLE 11XE I've set TOracleSession.Preferences.ForceWideStrings = True.
The definitions of the string-fields on the database are with CHAR (e.g. VARCHAR(20 CHAR)).

Best regards
Rolf

Delphi XE10(Seattle) with DOA 4.1.3.5 on Win7, ORACLE 11gXE R2

Re: charset problem by OracleDictionary.FieldKinds
Schlueter #54007 09/15/16 08:36 AM
Joined: Aug 1999
Posts: 22,216
Member
Offline
Member
Joined: Aug 1999
Posts: 22,216
If FieldKinds = True then then the non-updateable fields will become fkInternalCalc. This is the only difference. We'll try to reproduce this.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.052s Queries: 14 (0.009s) Memory: 2.5036 MB (Peak: 3.0458 MB) Data Comp: Off Server Time: 2024-05-10 20:19:08 UTC
Valid HTML 5 and Valid CSS