FB 2.1 and UTF8 columns
Posted: Fri 25 Jul 2008 09:51
I am testing your driver for use with ReportManager.
The columns defined with UTF8 come across as strings instead of widestring.
I noticed in the FAQ/help that this is the default but I don't know how to change the default setting. What do I need to enter in the dbxdrivers.ini or dbxconnections.ini for this:
UseUnicode
Enables or disables Unicode support. Affects character data fetched from the server. When set to True all character data is stored as WideStrings and TStringField is replaced with TWideStringFiled.
This option is available for Delphi 2006 and higher IDE versions.
Default value of this option is False.
const
coUseUnicode = TSQLConnectionOption(209); // boolean
. . .
SQLConnection1.SQLConnection.SetOption(coUseUnicode, Integer(True));
WaitOnLocks
Use this option to set WaitOnLocks paramater for default transaction.
SQLConnection1.Params.Values['WaitOnLocks'] := 'ReadCommited';
SQLConnection1.Connected := True;
Thanks for any help on this.
Werner
The columns defined with UTF8 come across as strings instead of widestring.
I noticed in the FAQ/help that this is the default but I don't know how to change the default setting. What do I need to enter in the dbxdrivers.ini or dbxconnections.ini for this:
UseUnicode
Enables or disables Unicode support. Affects character data fetched from the server. When set to True all character data is stored as WideStrings and TStringField is replaced with TWideStringFiled.
This option is available for Delphi 2006 and higher IDE versions.
Default value of this option is False.
const
coUseUnicode = TSQLConnectionOption(209); // boolean
. . .
SQLConnection1.SQLConnection.SetOption(coUseUnicode, Integer(True));
WaitOnLocks
Use this option to set WaitOnLocks paramater for default transaction.
SQLConnection1.Params.Values['WaitOnLocks'] := 'ReadCommited';
SQLConnection1.Connected := True;
Thanks for any help on this.
Werner