Print Thread
Delphi Unicode Migration, required to connect to different CHARSET DBs
#49165 06/27/14 07:49 AM
Joined: Aug 2013
Posts: 32
A
akaya Offline OP
Member
OP Offline
Member
A
Joined: Aug 2013
Posts: 32
Hello,

We are migration our Delphi 7 application to XE6 in order to support Unicode.

I read DOA Addendum and the link below, but there is a problem we could not solve.

https://forums.allroundautomations.com/ubb/ubbthreads.php?ubb=showflat&Number=39531

When we connect to AL32UTF8 database, we get "expecting : WideString actual : String" error. We then change dataset fields to WideString and no errors.

We connect the same application to WE8ISO8859P9 database, we get "expecting : String actual : WideString" error.

What should we do in order to be able to connect to databases with different CHARSETS with same application?

Thank you.

Re: Delphi Unicode Migration, required to connect to different CHARSET DBs
akaya #49166 06/27/14 09:08 AM
Joined: Aug 1999
Posts: 22,198
Member
Offline
Member
Joined: Aug 1999
Posts: 22,198
If your application needs to run on Unicode and non-Unicode databases and uses persistent dataset fields, then you should set TOracleSession.Preferences.ForceWideStringFields to True. Now all string fields will be WideStrings, both on Unicode databases and non-Unicode databases.


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.245s Queries: 14 (0.109s) Memory: 2.4982 MB (Peak: 3.0397 MB) Data Comp: Off Server Time: 2024-04-18 11:09:03 UTC
Valid HTML 5 and Valid CSS