Print Thread
Unicode - wrong string length
#40103 05/11/11 11:59 AM
Joined: Jul 2000
Posts: 27
Nettersheim-Marmagen, Germany
N
Member
OP Offline
Member
N
Joined: Jul 2000
Posts: 27
Nettersheim-Marmagen, Germany
Hello,

if I access a unicode database DOA will return a wrong
string length. E.g. if the Field is defined with 40 characters I will get a length of 160. (These are the bytes used within Oracle - not the Delphi string length).

Any plans to correct this ?`

Nils

Re: Unicode - wrong string length
NDzubiel #40208 05/12/11 09:42 AM
Joined: Aug 1999
Posts: 22,214
Member
Offline
Member
Joined: Aug 1999
Posts: 22,214
Have you enabled TOracleDataSet.OracleDictionary.CharacterSize?


Marco Kalter
Allround Automations
Re: Unicode - wrong string length
Marco Kalter #40295 05/12/11 08:29 PM
Joined: Jul 2000
Posts: 27
Nettersheim-Marmagen, Germany
N
Member
OP Offline
Member
N
Joined: Jul 2000
Posts: 27
Nettersheim-Marmagen, Germany
Well, this helps -
just a small problem -
how to set this flag in all Queries within
my software .... 4200 changes in 577 files ?!
Is there any global option ?

Nils

Re: Unicode - wrong string length
NDzubiel #40313 05/13/11 09:43 AM
Joined: Aug 1999
Posts: 22,214
Member
Offline
Member
Joined: Aug 1999
Posts: 22,214
There is no global option, but you could:
  • Derive your own TOracleDataSet and change the default
  • If you have the source code: change the default in OracleData.pas
  • Iterate the components at run-time in OnCreate event handlers
  • Run a macro on the .dfm files


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.032s Queries: 15 (0.008s) Memory: 2.5094 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-05-09 11:30:24 UTC
Valid HTML 5 and Valid CSS